-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
54 lines (51 loc) · 1.38 KB
/
render.yaml
File metadata and controls
54 lines (51 loc) · 1.38 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
48
49
50
51
52
53
54
# Render Blueprint for OmniPizza QA Platform
# https://render.com
services:
# Backend Service (FastAPI)
- type: web
name: omnipizza-backend
runtime: python
region: oregon
plan: free
buildCommand: "pip install -r backend/requirements.txt"
startCommand: "cd backend && uvicorn main:app --host 0.0.0.0 --port $PORT"
envVars:
- key: ENVIRONMENT
value: production
- key: CORS_ORIGINS
value: '["*"]'
- key: PYTHON_VERSION
value: "3.11.0"
healthCheckPath: /health
autoDeploy: true
# Frontend Service (React)
- type: web
name: omnipizza-frontend
runtime: static
buildCommand: >
cd frontend
&& corepack enable
&& pnpm install --frozen-lockfile
&& export VITE_APP_RELEASE=$RENDER_GIT_COMMIT
&& pnpm build
staticPublishPath: frontend/dist
envVars:
- key: VITE_API_URL
sync: false
routes:
- type: rewrite
source: /api/*
destination: https://omnipizza-backend.onrender.com/api/*
- type: rewrite
source: /*
destination: /index.html
headers:
- path: /*
name: X-Frame-Options
value: DENY
- path: /*
name: X-Content-Type-Options
value: nosniff
autoDeploy: true
# Database: In-memory (no persistence required)
# The backend reinitializes on each deploy, perfect for QA testing