From a569013626fc60405537b545dceeac9c2229371c Mon Sep 17 00:00:00 2001 From: Shusui MOYATANI Date: Fri, 15 Sep 2023 21:50:50 +0900 Subject: [PATCH] Revert "feat: hash routing" This reverts commit ea23db4b5f0740194d2fe8f944c9d8095757dce1. --- .github/workflows/ci.yml | 3 +++ src/index.tsx | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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( () => ( - + ),