From ea23db4b5f0740194d2fe8f944c9d8095757dce1 Mon Sep 17 00:00:00 2001 From: Shusui MOYATANI Date: Fri, 15 Sep 2023 21:44:58 +0900 Subject: [PATCH] feat: hash routing --- .github/workflows/ci.yml | 3 --- src/index.tsx | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f87b62..96e2b0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' }} diff --git a/src/index.tsx b/src/index.tsx index 7c3926c..6ce2726 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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( () => ( - + ),