-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
68 lines (56 loc) · 2.27 KB
/
Copy path.env.example
File metadata and controls
68 lines (56 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# IMPORTANT: After adding environment variables, you must:
# 1. Add them to turbo.json's globalEnv array
# 2. Restart the dev server from the root directory
# See docs/TROUBLESHOOTING.md for details
# App
NODE_ENV=development
NEXT_PUBLIC_APP_URL=http://localhost:3002
NEXT_PUBLIC_APP_NAME=NextSaaS
# Database (Supabase) - Required
# Get these from your Supabase project settings: https://supabase.com/dashboard
NEXT_PUBLIC_SUPABASE_URL=https://xxxxx.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ...your-anon-key...
SUPABASE_SERVICE_ROLE_KEY=eyJ...your-service-key...
# Direct Database Connection - Required for migrations
# Format: postgresql://postgres:[YOUR-PASSWORD]@db.xxxxx.supabase.co:5432/postgres
DATABASE_URL=postgresql://postgres:your-password@db.xxxxx.supabase.co:5432/postgres
# Authentication
NEXTAUTH_URL=http://localhost:3002
NEXTAUTH_SECRET=your-nextauth-secret-here
# Stripe (Optional - for billing)
STRIPE_SECRET_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_...
# Email Configuration (Optional)
# For sending emails via Resend, SendGrid, etc.
EMAIL_FROM=noreply@example.com
EMAIL_PROVIDER=resend
RESEND_API_KEY=re_...
# Analytics (Optional)
NEXT_PUBLIC_POSTHOG_KEY=phc_...
NEXT_PUBLIC_POSTHOG_HOST=https://app.posthog.com
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-...
# Monitoring (Optional)
SENTRY_DSN=https://...@sentry.io/...
NEXT_PUBLIC_SENTRY_DSN=https://...@sentry.io/...
# Feature Flags
NEXT_PUBLIC_ENABLE_ANALYTICS=true
NEXT_PUBLIC_ENABLE_MAINTENANCE_MODE=false
DISABLE_EMAIL_CONFIRMATION=false
NEXT_PUBLIC_DISABLE_EMAIL_CONFIRMATION=false
# Organization Mode
# 'none' = User-centric app (no organizations)
# 'single' = One workspace per user (default, recommended)
# 'multi' = Multiple organizations per user (full B2B SaaS)
NEXT_PUBLIC_ORGANIZATION_MODE=single
# Storage Configuration
# Use Backblaze B2 for file storage (recommended for production)
NEXT_PUBLIC_BACKBLAZE_BUCKET_NAME=nextsaas-storage
NEXT_PUBLIC_BACKBLAZE_ENDPOINT=https://s3.us-west-000.backblazeb2.com
BACKBLAZE_ACCESS_KEY_ID=your-backblaze-key-id
BACKBLAZE_SECRET_ACCESS_KEY=your-backblaze-secret-key
BACKBLAZE_APPLICATION_KEY_ID=your-application-key-id
BACKBLAZE_APPLICATION_KEY=your-application-key
# Turbo (Optional)
TURBO_TOKEN=your-turbo-token
TURBO_TEAM=your-turbo-team