Skip to content

Commit 96e3e0c

Browse files
dudushyCopilot
andcommitted
feat: add step to copy index.html as 404.html for SPA fallback in deployment workflow
Co-authored-by: Copilot <copilot@github.com>
1 parent 3fd3d70 commit 96e3e0c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
if: github.event_name != 'pull_request'
4949
uses: actions/configure-pages@v5
5050

51+
- name: Copiar index.html como 404.html (SPA fallback)
52+
if: github.event_name != 'pull_request'
53+
run: cp ./dist/npm-showcase/browser/index.html ./dist/npm-showcase/browser/404.html
54+
5155
- name: Upload artifact
5256
if: github.event_name != 'pull_request'
5357
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)