Skip to content

Commit 18d302a

Browse files
committed
chore: add Render configuration file for deployment
1 parent c2774d2 commit 18d302a

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

render.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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.

0 commit comments

Comments
 (0)