From 263f4c4c8b9c4d2bd4eee41ceead264ad44ed2f2 Mon Sep 17 00:00:00 2001 From: Stephanie Gredell Date: Sat, 29 Nov 2025 21:20:16 -0800 Subject: [PATCH] Fix frontend deployment: add /api suffix to VITE_API_URL, add catchall_document, and fix CORS_ORIGIN --- .do/app.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.do/app.yaml b/.do/app.yaml index c825504..37b9e41 100644 --- a/.do/app.yaml +++ b/.do/app.yaml @@ -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: envs: - key: VITE_API_URL - value: ${backend.PUBLIC_URL} + value: ${backend.PUBLIC_URL}/api routes: - path: / + + catchall_document: index.html