-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
46 lines (38 loc) · 1.83 KB
/
.env.example
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
# Example environment configuration
# Create the following files with appropriate values:
# - .env.development (for local development)
# - .env.staging (for staging environment)
# - .env.production (for production environment)
# Required Contentful Variables
# ---------------------------
NEXT_PUBLIC_CONTENTFUL_SPACE_ID="your Space ID"
NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN="Content Delivery API token"
NEXT_PUBLIC_CONTENTFUL_PREVIEW_ACCESS_TOKEN="Content Preview API token"
CONTENTFUL_PREVIEW_SECRET="any URL friendly value of your choice"
# Mux Configuration (Optional)
# -------------------------
# MUX_TOKEN_ID="your Mux token ID"
# MUX_TOKEN_SECRET="your Mux token secret"
# Environment-specific Variables
# ----------------------------
# Development-only variables
NODE_ENV=development # Set to 'development' for local dev
NEXT_PUBLIC_API_URL=http://localhost:3000 # Local API URL
# Staging-specific variables (for .env.staging)
NODE_ENV=staging # Set to 'staging' for staging env
NEXT_PUBLIC_API_URL=https://staging-api.example.com
# Production-specific variables (for .env.production)
NODE_ENV=production # Set to 'production' for prod env
NEXT_PUBLIC_API_URL=https://api.example.com
# Optional Performance Settings
# ---------------------------
NEXT_TELEMETRY_DISABLED=1 # Disable Next.js telemetry
NEXT_SHARP_PATH=/tmp/node_modules/sharp # Custom Sharp path for image processing
# Security Settings
# ---------------
SESSION_SECRET="" # Required for production
COOKIE_SECRET="" # Required for production
# Monitoring and Logging (Production)
# --------------------------------
SENTRY_DSN="" # Error tracking
LOG_LEVEL="info" # Logging verbosity