Fix SPA routing 404 on GitHub Pages

This commit is contained in:
dyzulk
2026-01-16 17:55:55 +07:00
parent 48ab715abf
commit cf3ea5856c

View File

@@ -35,7 +35,9 @@ jobs:
run: npm ci run: npm ci
- name: Build - name: Build
run: npm run build run: |
npm run build
cp dist/index.html dist/404.html
env: env:
# Inject secrets/vars from GitHub Repository Settings # Inject secrets/vars from GitHub Repository Settings
VITE_SUPABASE_URL: ${{ vars.VITE_SUPABASE_URL }} VITE_SUPABASE_URL: ${{ vars.VITE_SUPABASE_URL }}