Revert "feat: hash routing"

This reverts commit ea23db4b5f.
This commit is contained in:
Shusui MOYATANI
2023-09-15 21:50:50 +09:00
parent 2dcc4da53f
commit a569013626
2 changed files with 5 additions and 2 deletions

View File

@@ -36,6 +36,9 @@ jobs:
run: npm run build run: npm run build
- name: Check license - name: Check license
run: npm run checkLicense 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 - name: Deploy
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' }}

View File

@@ -1,5 +1,5 @@
/* @refresh reload */ /* @refresh reload */
import { Router, hashIntegration } from '@solidjs/router'; import { Router } from '@solidjs/router';
import { render } from 'solid-js/web'; import { render } from 'solid-js/web';
import '@/index.css'; import '@/index.css';
@@ -7,7 +7,7 @@ import App from '@/App';
render( render(
() => ( () => (
<Router base={import.meta.env.BASE_URL} source={hashIntegration()}> <Router base={import.meta.env.BASE_URL}>
<App /> <App />
</Router> </Router>
), ),