From 89fd78962e4295f131a7b78e00e2affcf4648a63 Mon Sep 17 00:00:00 2001 From: Istvan Matejcsok <119620946+matejcsok-ee@users.noreply.github.com> Date: Fri, 7 Aug 2026 13:17:54 +0200 Subject: [PATCH] fix(ci): avoid duplicate staging SPA fallback --- .github/workflows/deploy-staging.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index babdf0d..179be77 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -85,10 +85,13 @@ jobs: - name: Build staging editor env: STAGING_TAG: staging-${{ github.sha }} - run: > - node scripts/deploy/build-editor.mjs --tag "$STAGING_TAG" - --cdn "$CDN_ORIGIN" --api-base "$API_ORIGIN" - --app-base "$APP_ORIGIN" --errors-env staging + run: | + node scripts/deploy/build-editor.mjs --tag "$STAGING_TAG" \ + --cdn "$CDN_ORIGIN" --api-base "$API_ORIGIN" \ + --app-base "$APP_ORIGIN" --errors-env staging + # Worker Static Assets uses not_found_handling=single-page-application. + # The generated _redirects file is for Pages and duplicates that fallback. + rm -f web/standalone/dist/_redirects - name: Deploy staging editor Worker run: npx --yes wrangler@4.99.0 deploy --config web/standalone/wrangler.staging.jsonc