File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ services :
2+ - type : web
3+ name : studyforge
4+ env : node
5+ # The build command runs every time you deploy
6+ buildCommand : npm install && npm run build
7+ # The start command runs to start your application
8+ startCommand : npm run start
9+ plan : free # You can change this to 'starter' or higher based on your needs
10+ envVars :
11+ - key : NODE_ENV
12+ value : production
13+ # Security Keys (Render will auto-generate these secure 256-bit strings)
14+ - key : JWT_SECRET
15+ generateValue : true
16+ - key : SESSION_SECRET
17+ generateValue : true
18+ # You MUST set these environment variables in the Render Dashboard after creation:
19+ - key : DATABASE_URL
20+ sync : false # e.g., your Neon PostgreSQL connection string
21+ - key : GEMINI_API_KEY
22+ sync : false
23+ - key : CORS_ORIGINS
24+ sync : false # Set this to your Render app URL, e.g., https://studyforge.onrender.com
25+ # (Optional) Add other keys like CLOUDINARY_CLOUD_NAME, SMTP_USER, etc. in the dashboard as needed.
You can’t perform that action at this time.
0 commit comments