From 05c39640d09626e9d8483930acfc23d1890b0af0 Mon Sep 17 00:00:00 2001 From: Tetardtek Date: Mon, 23 Mar 2026 03:09:16 +0100 Subject: [PATCH] fix: VITE_API_URL fallback to include /api suffix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Secret was missing /api — frontend called /auth/session instead of /api/auth/session, Apache SPA fallback returned index.html instead of proxying to Express backend. --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a1ff376..e60f980 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -38,7 +38,7 @@ jobs: - name: Install & build frontend working-directory: frontend env: - VITE_API_URL: ${{ secrets.VITE_API_URL }} + VITE_API_URL: ${{ secrets.VITE_API_URL || 'https://origins.tetardtek.com/api' }} VITE_SUPEROAUTH_URL: ${{ secrets.VITE_SUPEROAUTH_URL }} VITE_OAUTH_URL: ${{ secrets.VITE_SUPEROAUTH_URL }} VITE_OAUTH_CLIENT_ID: origins