-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.vercel.production
More file actions
148 lines (126 loc) · 5.02 KB
/
.env.vercel.production
File metadata and controls
148 lines (126 loc) · 5.02 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# Production Environment Variables for Vercel Deployment
# Add these to your Vercel Dashboard: Project Settings → Environment Variables
# ===============================
# DOMAIN & APP CONFIGURATION
# ===============================
NEXT_PUBLIC_APP_URL=https://evalion.free.nf
NEXT_PUBLIC_VERCEL_URL=evalion.free.nf
NODE_ENV=production
# ===============================
# FIREBASE AUTHENTICATION
# ===============================
# Get these from Firebase Console → Project Settings
NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_key_here
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-project.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-project.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=123456789
NEXT_PUBLIC_FIREBASE_APP_ID=1:123456789:web:abcdefghijklmn
# Firebase Admin SDK (for server-side operations)
FIREBASE_PRIVATE_KEY_ID=your_private_key_id
FIREBASE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY_HERE\n-----END PRIVATE KEY-----\n"
FIREBASE_CLIENT_EMAIL=firebase-adminsdk-xxxxx@your-project.iam.gserviceaccount.com
FIREBASE_CLIENT_ID=123456789012345678901
# ===============================
# STRIPE PAYMENTS (LIVE KEYS)
# ===============================
# IMPORTANT: Use LIVE keys for production!
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_live_51xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
STRIPE_SECRET_KEY=sk_live_REPLACE_WITH_YOUR_ACTUAL_STRIPE_SECRET_KEY
STRIPE_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Stripe Product Price IDs (create these in Stripe Dashboard)
STRIPE_PREMIUM_PRICE_ID=price_1234567890abcdefg
STRIPE_PRO_PRICE_ID=price_0987654321zyxwvut
# ===============================
# RATE LIMITING (UPSTASH REDIS)
# ===============================
# Get these from https://upstash.com/ (FREE tier available)
UPSTASH_REDIS_REST_URL=https://eu1-perfect-seahorse-12345.upstash.io
UPSTASH_REDIS_REST_TOKEN=AYNaASQgYWU0MGY4N2EtZGNkNC00MTEyLWJmODMtNDQxZWM2MWNlNzgzxxxxxxxxxxxxxxxxxx
# ===============================
# SELF-HOSTED TTS SERVICE
# ===============================
# Deploy your XTTS service and update these URLs
XTTS_API_URL=https://your-tts-service.railway.app
XTTS_API_KEY=your_secure_tts_api_key_here
# Alternative: Use external TTS service
# ELEVENLABS_API_KEY=your_elevenlabs_api_key_here
# ===============================
# SECURITY CONFIGURATION
# ===============================
# Generate secure random strings (32+ characters)
# Use: openssl rand -base64 32
JWT_SECRET=your-super-secure-jwt-secret-key-32-chars-minimum
ENCRYPTION_KEY=your-encryption-key-for-sensitive-data-32-chars
# Allowed origins for CORS
ALLOWED_ORIGINS=https://evalion.free.nf,https://www.evalion.free.nf
# ===============================
# AI MODEL CONFIGURATION
# ===============================
# Local AI settings
AI_MAX_TOKENS=1000
AI_TEMPERATURE=0.7
AI_MAX_CONTEXT_LENGTH=2048
# Model paths (for Vercel deployment, models are included in build)
MODEL_PATH=/tmp/models
TOKENIZER_PATH=/tmp/models/tokenizer.json
# ===============================
# FEATURE FLAGS
# ===============================
ENABLE_RATE_LIMITING=true
ENABLE_VOICE_SYNTHESIS=true
ENABLE_USER_ANALYTICS=true
ENABLE_DEBUG_LOGS=false
# ===============================
# MONITORING & ANALYTICS
# ===============================
# Vercel Analytics (automatically enabled)
NEXT_PUBLIC_VERCEL_ANALYTICS=true
# Optional: Additional analytics
NEXT_PUBLIC_GA_TRACKING_ID=G-XXXXXXXXXX
NEXT_PUBLIC_HOTJAR_ID=your_hotjar_id
# Error tracking (optional)
SENTRY_DSN=https://xxxxx@sentry.io/xxxxx
SENTRY_ORG=your_org
SENTRY_PROJECT=therapeutic-ai-assistant
# ===============================
# DATABASE CONFIGURATION
# ===============================
# Continue using Firebase Firestore (already configured above)
# Or upgrade to Vercel Postgres later - add POSTGRES_URL variable
# ===============================
# EMAIL CONFIGURATION (OPTIONAL)
# ===============================
# For transactional emails (optional)
SMTP_HOST=smtp.sendgrid.net
SMTP_PORT=587
SMTP_USER=apikey
SMTP_PASS=your_sendgrid_api_key
EMAIL_FROM=noreply@evalion.free.nf
# ===============================
# CONTENT SECURITY
# ===============================
# CSP additional domains (if needed)
CSP_ADDITIONAL_DOMAINS=https://cdn.evalion.free.nf
# ===============================
# VERCEL-SPECIFIC SETTINGS
# ===============================
# These are handled automatically by Vercel, but can be customized
VERCEL_REGION=iad1
VERCEL_EDGE_CONFIG=your_edge_config_id
# Build settings (Vercel handles these automatically)
BUILD_COMMAND=npm run build
INSTALL_COMMAND=npm ci
OUTPUT_DIRECTORY=.next
# ===============================
# IMPORTANT NOTES
# ===============================
#
# 1. NEVER commit this file to Git! Add to .gitignore
# 2. Add all variables to Vercel Dashboard, not as a file
# 3. Use "Production" environment in Vercel settings
# 4. Test with preview deployments first
# 5. Monitor function logs in Vercel dashboard
#
# Vercel Dashboard: https://vercel.com/dashboard
# Add variables: Project → Settings → Environment Variables