Environment Setup
Production deployments require a complete set of environment variables and a MongoDB instance.
Required Variables
Variable |
Description |
|---|---|
|
MongoDB connection string (local or Atlas) |
|
Database name (optional override) |
|
32+ character secret for signing JWTs |
|
Base URL for authentication callbacks |
Optional Variables
Variable |
Description |
|---|---|
|
Webhook for sending password reset emails |
|
Log verbosity ( |
Database Initialization
Initialize the MongoDB collections and indexes before going live:
npx tsx scripts/init-database.ts
If you need to create additional indexes later, run:
npx tsx scripts/create-indexes.ts