For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs; this page is available as Markdown.
| Variable | Description |
|---|
| DATABASE_URL | PostgreSQL connection string. Example: postgresql://user:password@host:5432/dbname?schema=public. On Vercel/serverless, some providers recommend ?connection_limit=1. |
| Variable | Description |
|---|
| APP_BASE_URL | Base URL of the application (e.g. http://localhost:3002 or https://panel.example.com). Used for password reset links and Discord OAuth redirect. |
| Variable | Description |
|---|
| STRIPE_SECRET_KEY | Stripe secret key (e.g. sk_test_... or sk_live_...). If not set, creating payment links in the Admin (Payments) section will return an error. |
| Variable | Description |
|---|
| SMTP_HOST | SMTP server (e.g. smtp.zoho.eu). |
| SMTP_PORT | Port (e.g. 587 or 465). |
| SMTP_SECURE | Set to true if using port 465. |
| SMTP_AUTH_METHOD | e.g. LOGIN. |
| SMTP_USER | SMTP username. |
| SMTP_PASS | SMTP password. |
| SMTP_FROM | From address for emails (e.g. "Your Panel <noreply@yourdomain.com>"). |
If SMTP is not set, the backend can still generate a reset link and print it in the server console (development only).
| Variable | Description |
|---|
| DISCORD_CLIENT_ID | Discord application client ID. |
| DISCORD_CLIENT_SECRET | Discord application client secret. |
| DISCORD_REDIRECT_URI | Must match the redirect URI in Discord Developer Portal (e.g. https://your-domain/api/auth/callback). |
These can also be stored in Admin Settings in the database (AdminSettings model) and overridden at runtime.
| Variable | Description |
|---|
| BLOB_READ_WRITE_TOKEN | Vercel Blob store token. If set (e.g. on Vercel), user banner uploads are stored in Blob instead of the local filesystem. Required for banner uploads to work on Vercel because the filesystem is read-only. |
| Variable | Required | Used for |
|---|
| DATABASE_URL | Yes | PostgreSQL (Prisma). |
| APP_BASE_URL | No | Reset links, Discord redirect. |
| STRIPE_SECRET_KEY | No | Creating Stripe payment links. |
| SMTP_* | No | Sending password reset emails. |
| DISCORD_* | No | Discord OAuth login. |
| BLOB_READ_WRITE_TOKEN | No | User banner uploads on Vercel. |
All of these can be set in .env for local development and in the host’s environment (e.g. Vercel project settings) for production.