mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: vite config (#3457)
This commit is contained in:
parent
ef15d819cf
commit
464890abc5
|
|
@ -64,6 +64,12 @@ export default defineConfig((conf: any) => {
|
|||
changeOrigin: true,
|
||||
rewrite: (path: string) => path.replace(ENV.VITE_BASE_PATH, '/'),
|
||||
}
|
||||
// 前端静态资源转发到本身
|
||||
proxyConf[ENV.VITE_BASE_PATH] = {
|
||||
target: `http://127.0.0.1:${ENV.VITE_APP_PORT}`,
|
||||
changeOrigin: true,
|
||||
rewrite: (path: string) => path.replace(ENV.VITE_BASE_PATH, '/'),
|
||||
}
|
||||
|
||||
return {
|
||||
preflight: false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue