-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
33 lines (33 loc) · 836 Bytes
/
Copy pathrender.yaml
File metadata and controls
33 lines (33 loc) · 836 Bytes
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
services:
- name: web
type: web
env: static
buildCommand: cd packages/web && npm ci && npm run build
domains:
- code-vs-code.utcode.net
staticPublishPath: packages/web/dist
headers:
- path: /*
name: X-Frame-Options
value: sameorigin
routes:
- type: rewrite
source: /*
destination: /index.html
envVars:
- key: VITE_SERVER_ORIGIN
value: https://api.code-vs-code.utcode.net
- name: server
type: web
env: node
buildCommand: cd packages/server && npm ci && npm run build
startCommand: cd packages/server && npm start
domains:
- api.code-vs-code.utcode.net
region: singapore
plan: free
envVars:
- key: WEB_ORIGIN
value: https://code-vs-code.utcode.net
- key: PORT
value: 8081