Skip to content

Commit

Permalink
chore: 修复 github pages 发布后404的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro-Pang committed Jul 21, 2024
1 parent 657adfe commit bc35b2d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions demos/vue3-demo/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
export default defineConfig((conf) => {
const isProd = conf.mode === 'production';
return {
base: isProd ? '/vue-print-next/' :'/',
plugins: [vue()],
}
})

0 comments on commit bc35b2d

Please sign in to comment.