Skip to content

Commit 0306e06

Browse files
committed
Adds SPA 404 fallback for static deployments
1 parent cfb75a0 commit 0306e06

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ jobs:
4545
- name: Build packages
4646
run: pnpm run build
4747

48+
- name: Add SPA 404 fallback
49+
shell: bash
50+
run: |
51+
if [ -d "./apps/widget-builder/dist" ]; then
52+
cp ./apps/widget-builder/dist/index.html ./apps/widget-builder/dist/404.html || true
53+
fi
54+
4855
- name: Setup Pages
4956
uses: actions/configure-pages@v4
5057

0 commit comments

Comments
 (0)