Browse Source

Add @types/node to frontend dependencies and fix ingress routing

drawing-pad
Stephanie Gredell 1 month ago
parent
commit
6f83c4eb2a
  1. 21
      .do/app.yaml
  2. 1
      frontend/package.json

21
.do/app.yaml

@ -1,6 +1,20 @@
name: kiddos name: kiddos
region: nyc region: nyc
# Ingress rules to route traffic properly
ingress:
rules:
- match:
path:
prefix: /api
component:
name: backend
- match:
path:
prefix: /
component:
name: frontend
# Backend Service # Backend Service
services: services:
- name: backend - name: backend
@ -45,7 +59,7 @@ services:
value: ${INITIAL_ADMIN_PASSWORD} value: ${INITIAL_ADMIN_PASSWORD}
type: SECRET type: SECRET
- key: CORS_ORIGIN - key: CORS_ORIGIN
value: ${frontend.PUBLIC_URL} value: ${APP_URL}
health_check: health_check:
http_path: /api/health http_path: /api/health
@ -64,10 +78,7 @@ static_sites:
envs: envs:
- key: VITE_API_URL - key: VITE_API_URL
value: ${backend.PUBLIC_URL}/api value: ${APP_URL}/api
routes:
- path: /
catchall_document: index.html catchall_document: index.html

1
frontend/package.json

@ -16,6 +16,7 @@
"@types/react": "^18.2.43", "@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17", "@types/react-dom": "^18.2.17",
"@types/react-router-dom": "^5.3.3", "@types/react-router-dom": "^5.3.3",
"@types/node": "^20.10.5",
"@vitejs/plugin-react": "^4.2.1", "@vitejs/plugin-react": "^4.2.1",
"typescript": "^5.3.3", "typescript": "^5.3.3",
"vite": "^5.0.8" "vite": "^5.0.8"

Loading…
Cancel
Save