webman迁移
This commit is contained in:
@@ -27,6 +27,11 @@ const viteConfig = ({ mode }: ConfigEnv): UserConfig => {
|
||||
server: {
|
||||
port: parseInt(VITE_PORT),
|
||||
open: VITE_OPEN != 'false',
|
||||
// 开发时把 /api、/admin 代理到 webman,避免跨域
|
||||
proxy: {
|
||||
'/api': { target: 'http://localhost:8787', changeOrigin: true },
|
||||
'/admin': { target: 'http://localhost:8787', changeOrigin: true },
|
||||
},
|
||||
},
|
||||
build: {
|
||||
cssCodeSplit: false,
|
||||
|
||||
Reference in New Issue
Block a user