fix: support child path to fix router issue

This commit is contained in:
kunish 2023-08-30 10:18:11 +08:00
parent 642fcd8190
commit 1091234703
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430
2 changed files with 3 additions and 5 deletions

View File

@ -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 .

View File

@ -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()],