Appearance
Environment Variables Reference
FreshAll variables go in .env.local (dev) or your hosting provider's environment settings (production).
Required Variables
| Variable | Description | Where to Get |
|---|---|---|
NEXTAUTH_URL | App URL (http://localhost:3000 for dev) | Set manually |
NEXTAUTH_SECRET | Random 15+ char string for JWT | Generate yourself |
Authentication
| Variable | Description | Where to Get |
|---|---|---|
GOOGLE_ID | Google OAuth Client ID | Google Cloud Console |
GOOGLE_SECRET | Google OAuth Client Secret | Google Cloud Console |
Database
| Variable | Description | Where to Get |
|---|---|---|
MONGODB_URI | MongoDB connection string | MongoDB Atlas |
Email
| Variable | Description | Where to Get |
|---|---|---|
RESEND_API_KEY | Resend API key | Resend Dashboard |
Payments
| Variable | Description | Where to Get |
|---|---|---|
STRIPE_PUBLIC_KEY | Stripe publishable key | Stripe Dashboard > Developers |
STRIPE_SECRET_KEY | Stripe secret key | Stripe Dashboard > Developers |
STRIPE_WEBHOOK_SECRET | Webhook signing secret | Stripe CLI or Dashboard > Webhooks |
Rate Limiting (Optional)
| Variable | Description | Where to Get |
|---|---|---|
UPSTASH_REDIS_REST_URL | Upstash Redis URL | Upstash Console |
UPSTASH_REDIS_REST_TOKEN | Upstash Redis token | Upstash Console |