|
@@ -8,9 +8,11 @@ import { defineConfig, loadEnv } from 'vite'
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
import Inspect from 'vite-plugin-inspect'
|
|
|
import path from 'path'
|
|
|
+
|
|
|
const pathSrc = path.resolve(__dirname, 'src')
|
|
|
|
|
|
export default defineConfig(({ mode }) => {
|
|
|
+
|
|
|
const env = loadEnv(mode, process.cwd())
|
|
|
return {
|
|
|
server: {
|
|
@@ -26,7 +28,7 @@ export default defineConfig(({ mode }) => {
|
|
|
*/
|
|
|
[env.VITE_APP_BASE_API]: {
|
|
|
changeOrigin: true,
|
|
|
- target: 'http://localhost:9700'
|
|
|
+ target: 'http://192.168.1.197:9901'
|
|
|
}
|
|
|
}
|
|
|
},
|