|
|
|
@ -1,7 +1,6 @@ |
|
|
|
name: kiddos |
|
|
|
name: kiddos |
|
|
|
region: nyc |
|
|
|
region: nyc |
|
|
|
|
|
|
|
|
|
|
|
# Backend Service |
|
|
|
|
|
|
|
services: |
|
|
|
services: |
|
|
|
- name: backend |
|
|
|
- name: backend |
|
|
|
source_dir: backend |
|
|
|
source_dir: backend |
|
|
|
@ -16,9 +15,11 @@ services: |
|
|
|
environment_slug: node-js |
|
|
|
environment_slug: node-js |
|
|
|
instance_size_slug: basic-xxs |
|
|
|
instance_size_slug: basic-xxs |
|
|
|
instance_count: 1 |
|
|
|
instance_count: 1 |
|
|
|
|
|
|
|
|
|
|
|
http_port: 3000 |
|
|
|
http_port: 3000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
routes: |
|
|
|
|
|
|
|
- path: /api |
|
|
|
|
|
|
|
|
|
|
|
envs: |
|
|
|
envs: |
|
|
|
- key: NODE_ENV |
|
|
|
- key: NODE_ENV |
|
|
|
value: production |
|
|
|
value: production |
|
|
|
@ -50,7 +51,6 @@ services: |
|
|
|
health_check: |
|
|
|
health_check: |
|
|
|
http_path: /api/health |
|
|
|
http_path: /api/health |
|
|
|
|
|
|
|
|
|
|
|
# Frontend Static Site |
|
|
|
|
|
|
|
static_sites: |
|
|
|
static_sites: |
|
|
|
- name: frontend |
|
|
|
- name: frontend |
|
|
|
source_dir: frontend |
|
|
|
source_dir: frontend |
|
|
|
@ -61,10 +61,11 @@ static_sites: |
|
|
|
|
|
|
|
|
|
|
|
build_command: npm install && npm run build |
|
|
|
build_command: npm install && npm run build |
|
|
|
output_dir: dist |
|
|
|
output_dir: dist |
|
|
|
|
|
|
|
catchall_document: index.html |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
routes: |
|
|
|
|
|
|
|
- path: / |
|
|
|
|
|
|
|
|
|
|
|
envs: |
|
|
|
envs: |
|
|
|
- key: VITE_API_URL |
|
|
|
- key: VITE_API_URL |
|
|
|
value: ${backend.PUBLIC_URL}/api |
|
|
|
value: ${backend.PUBLIC_URL}/api |
|
|
|
|
|
|
|
|
|
|
|
catchall_document: index.html |
|
|
|
|
|
|
|
|
|
|
|
|