|
|
@ -13,7 +13,7 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
|
|
|
|
resolve: {
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
alias: {
|
|
|
|
'~': path.resolve(__dirname, './'),
|
|
|
|
'~': path.resolve(__dirname, './'),
|
|
|
|
'@': path.resolve(__dirname, './src')
|
|
|
|
'@': path.resolve(__dirname, 'src')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
|
|
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -26,6 +26,7 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
|
|
|
|
proxy: {
|
|
|
|
proxy: {
|
|
|
|
[env.VITE_APP_BASE_API]: {
|
|
|
|
[env.VITE_APP_BASE_API]: {
|
|
|
|
target: 'http://localhost:6080',
|
|
|
|
target: 'http://localhost:6080',
|
|
|
|
|
|
|
|
// target: 'http://192.168.137.1:6080',
|
|
|
|
// target: 'http://175.27.215.92:6080/prod-api',
|
|
|
|
// target: 'http://175.27.215.92:6080/prod-api',
|
|
|
|
changeOrigin: true,
|
|
|
|
changeOrigin: true,
|
|
|
|
ws: true,
|
|
|
|
ws: true,
|
|
|
|