|
@@ -1,10 +1,10 @@
|
|
|
-import { fileURLToPath, URL } from 'node:url'
|
|
|
-import { defineConfig, loadEnv } from 'vite'
|
|
|
-import vue from '@vitejs/plugin-vue'
|
|
|
-const path = require('path')
|
|
|
-const common = path.resolve(__dirname, '../common')
|
|
|
+import { fileURLToPath, URL } from 'node:url';
|
|
|
+import { defineConfig, loadEnv } from 'vite';
|
|
|
+import vue from '@vitejs/plugin-vue';
|
|
|
+const path = require('path');
|
|
|
+const common = path.resolve(__dirname, '../common');
|
|
|
export default defineConfig(({ mode }) => {
|
|
|
- const env = loadEnv(mode, __dirname)
|
|
|
+ const env = loadEnv(mode, __dirname);
|
|
|
return {
|
|
|
|
|
|
base: env.VITE_BASE_URL,
|
|
@@ -14,7 +14,7 @@ export default defineConfig(({ mode }) => {
|
|
|
},
|
|
|
plugins: [vue()],
|
|
|
server: {
|
|
|
- port: 8001,
|
|
|
+ port: 8003,
|
|
|
proxy: {
|
|
|
'/files': {
|
|
|
target: 'http://basic.waityou24.cn'
|
|
@@ -28,5 +28,5 @@ export default defineConfig(({ mode }) => {
|
|
|
'@common': common
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
-})
|
|
|
+ };
|
|
|
+});
|