Skip to content

Commit bc0e8a0

Browse files
committed
fix: add base URL configuration for production build consistency
1 parent 413c35a commit bc0e8a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import vue from '@vitejs/plugin-vue'
44

55
// https://vitejs.dev/config/
66
export default defineConfig({
7+
base: process.env.NODE_ENV === 'production'
8+
? (process.env.BASE_URL || '/')
9+
: '/',
710
plugins: [
811
vue(),
912
],

0 commit comments

Comments
 (0)