feat: add change user-config
This commit is contained in:
@@ -74,6 +74,10 @@ export default defineConfig({
|
||||
port: 6020,
|
||||
host: '0.0.0.0',
|
||||
proxy: {
|
||||
'/root/locales': {
|
||||
target: 'https://kevisual.cn',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/system/lib': {
|
||||
target: 'https://kevisual.xiongxiao.me',
|
||||
changeOrigin: true,
|
||||
@@ -81,6 +85,7 @@ export default defineConfig({
|
||||
'/api': {
|
||||
target: 'http://localhost:4005',
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, '/api'),
|
||||
},
|
||||
...proxy,
|
||||
|
||||
Reference in New Issue
Block a user