mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-03 00:02:28 +08:00
fix: 添加 404.html 支持 SPA 路由刷新
This commit is contained in:
3
.github/workflows/deploy-pages.yml
vendored
3
.github/workflows/deploy-pages.yml
vendored
@@ -37,6 +37,9 @@ jobs:
|
|||||||
GITHUB_PAGES: 'true'
|
GITHUB_PAGES: 'true'
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Copy index.html to 404.html for SPA routing
|
||||||
|
run: cp frontend/dist/index.html frontend/dist/404.html
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v4
|
uses: actions/configure-pages@v4
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user