Skip to content

Commit 939707d

Browse files
committed
update deployment modification
1 parent 4810d1d commit 939707d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

vite.config.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
33

44
// https://vitejs.dev/config/
5-
export default defineConfig({
6-
plugins: [react()],
7-
base : "absproxy/5173"
8-
})
5+
export default defineConfig(({ command }) => {
6+
const base = command === 'serve' ? '/absproxy/5173/' : './'
7+
8+
return {
9+
plugins: [react()],
10+
base
11+
};
12+
})

0 commit comments

Comments
 (0)