Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
44 lines (37 loc) · 2 KB
/
Copy path.env.example
File metadata and controls
44 lines (37 loc) · 2 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
# DevTrack â‰" Production Deployment Configuration Template
# ============================================================================
# 1. SERVER CONFIGURATION
# ----------------------------------------------------------------------------
PORT=3001
NODE_ENV=production
# The public URL of your frontend application for CORS hardening
CORS_ORIGIN=https://devtrack.vercel.app
# 2. DATABASE (MongoDB Atlas recommended for production)
# ----------------------------------------------------------------------------
MONGODB_URI=mongodb+srv://<user>:<password>@<cluster>.mongodb.net/devtrack
# 3. SECURITY & AUTH (Clerk - https://clerk.com)
# ----------------------------------------------------------------------------
# REQUIRED: Get these from your Clerk dashboard > API Keys
CLERK_SECRET_KEY=your_clerk_secret_key
VITE_CLERK_PUBLISHABLE_KEY=pk_live_your_clerk_publishable_key
# 4. PLATFORM INTEGRATION (Optional but recommended)
# ----------------------------------------------------------------------------
# Used to bypass GitHub API rate limits for profile enrichment
GITHUB_TOKEN=your_github_personal_access_token
# 5. AI SERVICES (Optional - at least one required for AI features)
# ----------------------------------------------------------------------------
OPENAI_API_KEY=your_openai_api_key
GEMINI_API_KEY=your_gemini_api_key
# 6. REDIS (BullMQ backend - required for background jobs in production)
# ----------------------------------------------------------------------------
# Local: leave blank (defaults to localhost:6379 with no auth)
# Production: configure with a managed Redis instance (Upstash, Redis Cloud, etc.)
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# Or use full URL (overrides host/port/password above):
# REDIS_URL=redis://default:xxxx@my-redis-cluster.upstash.io:6379
# 7. FRONTEND CONFIGURATION (For CI/CD injection)
# ----------------------------------------------------------------------------
# This variable is needed by the Vite build process
VITE_API_BASE_URL=https://devtrack-api.railway.app/api