-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.env.local.example
More file actions
47 lines (39 loc) · 2.45 KB
/
.env.local.example
File metadata and controls
47 lines (39 loc) · 2.45 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
# Firebase Client Configuration
NEXT_PUBLIC_FIREBASE_API_KEY=your_api_key_here
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project_id.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_project_id.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
NEXT_PUBLIC_FIREBASE_APP_ID=your_app_id
# Firebase Admin Configuration (Server-side only)
# Option 1 (RECOMMENDED for Vercel): Use the complete service account JSON as a single variable
# Download your service account key from Firebase Console and paste the entire JSON content here
# FIREBASE_SERVICE_ACCOUNT_KEY='{"type":"service_account","project_id":"...","private_key_id":"...","private_key":"...","client_email":"...","client_id":"...","auth_uri":"...","token_uri":"...","auth_provider_x509_cert_url":"...","client_x509_cert_url":"..."}'
# Option 2: Use individual variables (for local development)
FIREBASE_ADMIN_PROJECT_ID=your_project_id
FIREBASE_ADMIN_CLIENT_EMAIL=your_service_account_email
FIREBASE_ADMIN_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nYour private key here\n-----END PRIVATE KEY-----\n"
# Cron Job Configuration
CRON_SECRET=your_secure_random_string_here
NEXT_PUBLIC_APP_URL=https://your-app-url.vercel.app
# Registration Control
# Set to 'false' to completely block all new registrations (existing users can still log in)
NEXT_PUBLIC_REGISTRATIONS_ENABLED=true
# Set to 'true' to enable email whitelist for registration
# When enabled, only emails listed in NEXT_PUBLIC_REGISTRATION_WHITELIST can register
NEXT_PUBLIC_REGISTRATION_WHITELIST_ENABLED=false
# Comma-separated list of email addresses allowed to register when whitelist is enabled
# Example: user1@example.com,user2@example.com,admin@example.com
NEXT_PUBLIC_REGISTRATION_WHITELIST=
# Development Features
# Set to 'true' to enable test snapshot generation feature in Settings page
# WARNING: Test snapshots are saved to the same Firebase collection as real data
# You can delete all dummy data using the "Elimina Tutti i Dati Dummy" button in Settings
# or manually from Firebase Console
NEXT_PUBLIC_ENABLE_TEST_SNAPSHOTS=false
# Anthropic AI Integration (Server-side only)
# Used for AI-powered performance analysis feature in Performance page
# Get your API key from: https://console.anthropic.com/settings/keys
# Create a free account or use an existing one
# IMPORTANT: Keep this key secret - never expose it to the client (no NEXT_PUBLIC_ prefix)
ANTHROPIC_API_KEY=your_anthropic_api_key_here