|
@@ -26,8 +26,8 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
|
|
|
open: true,
|
|
open: true,
|
|
|
proxy: {
|
|
proxy: {
|
|
|
[env.VITE_APP_BASE_API]: {
|
|
[env.VITE_APP_BASE_API]: {
|
|
|
- target: 'http://localhost:8080',
|
|
|
|
|
- // target: 'https://khy.xiaole.vip/api',
|
|
|
|
|
|
|
+ // target: 'http://localhost:8080',
|
|
|
|
|
+ target: 'https://khy.xiaole.vip/api',
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
ws: true,
|
|
ws: true,
|
|
|
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
|
|
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
|