-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrender.yaml
More file actions
64 lines (61 loc) · 2.1 KB
/
render.yaml
File metadata and controls
64 lines (61 loc) · 2.1 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
55
56
57
58
59
60
61
62
63
64
# SEO Auditor - Render Blueprint
#
# Deploys the frontend and API service. Choose either TypeScript or Python backend.
# NOTE: Render Workflows are created via the Dashboard, not render.yaml.
# See README.md for workflow setup instructions.
services:
# Frontend (static site)
- type: web
name: seo-audit-frontend
runtime: static
rootDir: frontend
buildCommand: npm install && npm run build
staticPublishPath: dist
envVars:
- key: VITE_API_URL
fromService:
name: seo-audit-api
type: web
property: host
- key: NODE_VERSION
value: "22"
routes:
- type: rewrite
source: /*
destination: /index.html
# API service (TypeScript)
- type: web
name: seo-audit-api
runtime: node
plan: starter
rootDir: typescript
buildCommand: npm install && npm run build
startCommand: node dist/api/index.js
envVars:
- key: RENDER_API_KEY
sync: false
- key: WORKFLOW_SLUG
sync: false
- key: WORKFLOW_ID
sync: false
- key: NODE_VERSION
value: "22"
# ─────────────────────────────────────────────────────────────────────────────
# ALTERNATIVE: Python API (uncomment below and comment out TypeScript above)
# ─────────────────────────────────────────────────────────────────────────────
# - type: web
# name: seo-audit-api
# runtime: python
# plan: starter
# rootDir: python
# buildCommand: pip install -r requirements.txt
# startCommand: gunicorn --chdir api app:app
# envVars:
# - key: RENDER_API_KEY
# sync: false
# - key: WORKFLOW_SLUG
# sync: false # Set to your workflow slug (name) from the Dashboard
# - key: WORKFLOW_ID
# sync: false
# - key: PYTHON_VERSION
# value: "3.12"