1
0
This commit is contained in:
2026-01-04 16:51:15 +08:00
parent 5d3c95d111
commit c15e3c16d8
6 changed files with 48 additions and 48 deletions

View File

@@ -8,15 +8,11 @@ import tailwindcss from '@tailwindcss/vite';
const isDev = process.env.NODE_ENV === 'development';
const plugins = [tailwindcss()];
let target = process.env.VITE_API_URL || 'https://localhost:51015';
let target = process.env.VITE_API_URL || 'https://localhost:51515';
const apiProxy = { target: target, changeOrigin: true, ws: true, rewriteWsOrigin: true, secure: false, cookieDomainRewrite: 'localhost' };
let proxy = {
'/root/center/': {
target: `${target}/root/center/`,
},
'/user/login/': {
target: `${target}/user/login/`,
},
'/root/center/': apiProxy,
'/user/login/': apiProxy,
'/api': apiProxy,
'/client': apiProxy,
};