diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37863b3..c113ff5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,9 @@ jobs: run: npm run build - name: Check license run: npm run checkLicense + - name: Copy index.html for GitHub Pages + if: ${{ github.ref == 'refs/heads/main' }} + run: cp dist/index.html dist/404.html - name: Deploy uses: peaceiris/actions-gh-pages@v3 if: ${{ github.ref == 'refs/heads/main' }} diff --git a/src/index.tsx b/src/index.tsx index 6ce2726..7c3926c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,5 +1,5 @@ /* @refresh reload */ -import { Router, hashIntegration } from '@solidjs/router'; +import { Router } from '@solidjs/router'; import { render } from 'solid-js/web'; import '@/index.css'; @@ -7,7 +7,7 @@ import App from '@/App'; render( () => ( - + ),