feat: hash routing

This commit is contained in:
Shusui MOYATANI
2023-09-15 21:44:58 +09:00
parent 15c8d0c924
commit ea23db4b5f
2 changed files with 2 additions and 5 deletions

View File

@@ -36,9 +36,6 @@ jobs:
run: npm run build -- --base="/rabbit/" # https://syusui-s.github.io/rabbit/
- 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' }}

View File

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