Browse Source

Fix frontend deployment: add /api suffix to VITE_API_URL, add catchall_document, and fix CORS_ORIGIN

drawing-pad
Stephanie Gredell 1 month ago
parent
commit
263f4c4c8b
  1. 6
      .do/app.yaml

6
.do/app.yaml

@ -45,7 +45,7 @@ services: @@ -45,7 +45,7 @@ services:
value: ${INITIAL_ADMIN_PASSWORD}
type: SECRET
- key: CORS_ORIGIN
value: ${APP_URL}
value: ${frontend.PUBLIC_URL}
health_check:
http_path: /api/health
@ -64,8 +64,10 @@ static_sites: @@ -64,8 +64,10 @@ static_sites:
envs:
- key: VITE_API_URL
value: ${backend.PUBLIC_URL}
value: ${backend.PUBLIC_URL}/api
routes:
- path: /
catchall_document: index.html

Loading…
Cancel
Save