-
Notifications
You must be signed in to change notification settings - Fork 10
/
render.yaml
47 lines (43 loc) · 1.13 KB
/
render.yaml
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
#####
# Documentation
# Redwood: https://render.com/docs/deploy-redwood
# YAML (all config values): https://render.com/docs/yaml-spec
#####
services:
- name: clippy-prod-web
type: web
env: static
buildCommand: cd app && yarn install --frozen-lockfile && yarn rw deploy render web
staticPublishPath: ./app/web/dist
envVars:
- key: NODE_VERSION
value: 16
- fromGroup: clippy-prod
domains:
- clippyai.com
routes:
- type: rewrite
source: /.redwood/functions/*
destination: https://api.clippyai.com/*
- type: rewrite
source: /*
destination: /index.html
- name: clippy-prod-api
type: web
env: node
region: oregon
buildCommand: cd app && yarn install --frozen-lockfile && yarn rw build api
startCommand: cd app && yarn rw deploy render api
envVars:
- key: NODE_VERSION
value: 16
- key: DATABASE_URL
fromDatabase:
name: clippy-prod-db
property: connectionString
- fromGroup: clippy-prod
domains:
- api.clippyai.com
databases:
- name: clippy-prod-db
region: oregon