mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 14:04:21 +01:00
feat: hash routing
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -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' }}
|
||||
|
||||
@@ -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>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user