D
Docs
Documentation Environment Variables

Environment Variables

.env

KeyExample ValueDescription
DATABASE_URL"postgresql://username:password@localhost:5432/database"Drizzle Database connection string
DIRECT_URL"postgresql://username:password@localhost:4321/database"Drizzle (for testing purposes)
BETTER_AUTH_SECRET"your-secret-key-here"Better Auth secret key
BETTER_AUTH_URL"http://localhost:3000"Better Auth URL (reflects your app url)
TRIGGER_SECRET_KEY"your-trigger-secret-key"Trigger.dev secret key, used to trigger your jobs with trigger sdk
STRIPE_SECRET_KEY"sk_test_..."Stripe secret key for subscriptions handling
STRIPE_WEBHOOK_SECRET"whsec_..."Stripe webhook secret for processing payments
STRIPE_NUXT_STARTER_WEBHOOK_SECRET"whsec_..."Stripe webhook secret for subscriptions handling

trigger/.env

KeyExample ValueDescription
SMTP_USER"your-email@example.com"SMTP username
SMTP_PASS"your-app-specific-password"SMTP password
RESEND_API_KEY"your-resend-api-key"Resend API key (if using resend)