fix(ci): avoid duplicate staging SPA fallback
This commit is contained in:
parent
f90cf7d2da
commit
89fd78962e
1 changed files with 7 additions and 4 deletions
11
.github/workflows/deploy-staging.yml
vendored
11
.github/workflows/deploy-staging.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue