Skip to content

Commit 7b934ee

Browse files
committed
ci: copy index.html to 404.html for spa routing on github pages
1 parent 00277c5 commit 7b934ee

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
- name: Build
3131
run: bunx vite build --base=/nexton-lp/
3232

33+
- name: Copy index.html to 404.html for SPA routing
34+
run: cp dist/index.html dist/404.html
35+
3336
- uses: actions/upload-pages-artifact@v3
3437
with:
3538
path: dist

0 commit comments

Comments
 (0)