From 10912347032f02e87c6754bb109510e1873a429f Mon Sep 17 00:00:00 2001 From: kunish Date: Wed, 30 Aug 2023 10:18:11 +0800 Subject: [PATCH] fix: support child path to fix router issue --- .github/workflows/release.yml | 7 ++----- vite.config.ts | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 47855f6..b8bdbea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,8 +38,8 @@ jobs: - name: install dependencies run: pnpm install - - name: build for gh-pages - run: pnpm build --base /metacubexd + - name: build + run: pnpm build - name: publish gh-pages uses: peaceiris/actions-gh-pages@v3 @@ -47,9 +47,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist - - name: build for github release - run: pnpm build - - name: zip run: | zip -r ../dist.zip . diff --git a/vite.config.ts b/vite.config.ts index 142d276..003ecca 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,6 +3,7 @@ import { defineConfig, splitVendorChunkPlugin } from 'vite' import solidPlugin from 'vite-plugin-solid' export default defineConfig({ + base: './', build: { chunkSizeWarningLimit: 1000 }, resolve: { alias: { '~': '/src' } }, plugins: [devtools(), solidPlugin(), splitVendorChunkPlugin()],