We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4810d1d commit 939707dCopy full SHA for 939707d
vite.config.ts
@@ -2,7 +2,11 @@ import { defineConfig } from 'vite'
2
import react from '@vitejs/plugin-react'
3
4
// https://vitejs.dev/config/
5
-export default defineConfig({
6
- plugins: [react()],
7
- base : "absproxy/5173"
8
-})
+export default defineConfig(({ command }) => {
+ const base = command === 'serve' ? '/absproxy/5173/' : './'
+
+ return {
9
+ plugins: [react()],
10
+ base
11
+ };
12
+})
0 commit comments