Environment Variables
LaunchFast uses environment variables for secrets and configuration. This page lists every variable the template reads, where it is required, and how to set it.
Setting variables
For local development, copy .env.example to .env and fill in the values. Never commit .env to version control.
cp .env.example .envFor production on Fly.io, use fly secrets set for runtime secrets and Docker build arguments for build-time values.
Core
| Variable | Required | Description |
|---|---|---|
SESSION_SECRET | Yes | Signs session cookies. Generate with openssl rand -hex 16. |
HONEYPOT_SECRET | Yes | Signs honeypot form fields for spam protection. |
INTERNAL_COMMAND_TOKEN | Yes | Authorizes internal admin commands (cache management, health checks). |
ALLOW_INDEXING | No | Set to "true" to allow search engine indexing. Defaults to disallowed. |
Authentication
| Variable | Required | Description |
|---|---|---|
GITHUB_CLIENT_ID | No | GitHub OAuth app client ID. Prefix with MOCK_ for development mocks. |
GITHUB_CLIENT_SECRET | No | GitHub OAuth app client secret. |
| Variable | Required | Description |
|---|---|---|
RESEND_API_KEY | Production | Resend API key for sending emails. In development, emails are logged to the terminal instead. |
Payments
| Variable | Required | Description |
|---|---|---|
STRIPE_ENABLED | No | Set to "true" to enable Stripe integration. All payment behavior is gated behind this flag. |
STRIPE_SECRET_KEY | If Stripe enabled | Stripe secret key from the Stripe Dashboard. |
STRIPE_WEBHOOK_ENDPOINT | If Stripe enabled | Webhook signing secret from Stripe. |
Monitoring
| Variable | Required | Description |
|---|---|---|
SENTRY_DSN | No | Sentry Data Source Name (runtime). Set via fly secrets. |
SENTRY_AUTH_TOKEN | No | Sentry auth token (build-time). Used by the Vite plugin for source maps and releases. |
SENTRY_ORG | No | Sentry organization slug (build-time). |
SENTRY_PROJECT | No | Sentry project slug (build-time). |
Deployment
| Variable | Required | Description |
|---|---|---|
LITEFS_CLOUD_TOKEN | No | LiteFS Cloud token for point-in-time database backups. Set via fly secrets. |
Related
- Manual setup — step-by-step guide including env configuration
- Email — Resend setup and configuration
- Sentry — monitoring setup details
- Stripe — payment integration setup