Skip to content

Commit b7a1575

Browse files
committed
fix: configure base path for GitHub Pages deployment
1 parent bebc1a3 commit b7a1575

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
77

88
// https://vitejs.dev/config/
99
export default defineConfig({
10-
base: './',
10+
base: process.env.NODE_ENV === 'production' ? '/chatlog-session/' : '/',
1111
plugins: [
1212
vue(),
1313
AutoImport({

0 commit comments

Comments
 (0)