|
@@ -1,8 +1,8 @@
|
|
|
-import { fileURLToPath, URL } from 'node:url'
|
|
|
-import { defineConfig, loadEnv } from 'vite'
|
|
|
-import vue from '@vitejs/plugin-vue'
|
|
|
+import { fileURLToPath, URL } from 'node:url';
|
|
|
+import { defineConfig, loadEnv } from 'vite';
|
|
|
+import vue from '@vitejs/plugin-vue';
|
|
|
export default defineConfig(({ mode }) => {
|
|
|
- const env = loadEnv(mode, __dirname)
|
|
|
+ const env = loadEnv(mode, __dirname);
|
|
|
return {
|
|
|
// 静态路径
|
|
|
base: env.VITE_BASE_URL,
|
|
@@ -18,7 +18,7 @@ export default defineConfig(({ mode }) => {
|
|
|
target: 'https://broadcast.waityou24.cn'
|
|
|
},
|
|
|
'/ball/v1/api': {
|
|
|
- target: 'http://192.168.1.113:13005',
|
|
|
+ target: 'http://192.168.1.113:13005', //http://169.254.16.148:13005 http://192.168.1.113:13005
|
|
|
changeOrigin: true,
|
|
|
ws: false
|
|
|
}
|
|
@@ -30,5 +30,5 @@ export default defineConfig(({ mode }) => {
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
-})
|
|
|
+ };
|
|
|
+});
|