mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
fix: support child path to fix router issue
This commit is contained in:
parent
642fcd8190
commit
1091234703
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -38,8 +38,8 @@ jobs:
|
|||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: build for gh-pages
|
- name: build
|
||||||
run: pnpm build --base /metacubexd
|
run: pnpm build
|
||||||
|
|
||||||
- name: publish gh-pages
|
- name: publish gh-pages
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
@ -47,9 +47,6 @@ jobs:
|
|||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./dist
|
publish_dir: ./dist
|
||||||
|
|
||||||
- name: build for github release
|
|
||||||
run: pnpm build
|
|
||||||
|
|
||||||
- name: zip
|
- name: zip
|
||||||
run: |
|
run: |
|
||||||
zip -r ../dist.zip .
|
zip -r ../dist.zip .
|
||||||
|
@ -3,6 +3,7 @@ import { defineConfig, splitVendorChunkPlugin } from 'vite'
|
|||||||
import solidPlugin from 'vite-plugin-solid'
|
import solidPlugin from 'vite-plugin-solid'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
base: './',
|
||||||
build: { chunkSizeWarningLimit: 1000 },
|
build: { chunkSizeWarningLimit: 1000 },
|
||||||
resolve: { alias: { '~': '/src' } },
|
resolve: { alias: { '~': '/src' } },
|
||||||
plugins: [devtools(), solidPlugin(), splitVendorChunkPlugin()],
|
plugins: [devtools(), solidPlugin(), splitVendorChunkPlugin()],
|
||||||
|
Loading…
Reference in New Issue
Block a user