diff --git a/.env.production b/.env.production index 2dc0a39..1ba4a2a 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,4 @@ ENV = production # 线上环境接口地址 -# VITE_API_URL = http://8.138.175.106/ VITE_API_URL = http://8.138.171.103/ \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 9f83cd2..91a006a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,8 +16,8 @@ const alias: Record = { }; // 请求映射后端路径 -// const url:string = 'http://8.138.171.103'; -const url:string = 'http://localhost:8081'; +const url:string = 'http://8.138.171.103'; +// const url:string = 'http://localhost:8081'; const viteConfig = defineConfig((mode: ConfigEnv) => { const env = loadEnv(mode.mode, process.cwd()); @@ -39,7 +39,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { ws: true, secure: false, changeOrigin: true, - rewrite: (path) => path.replace(/^\/aerocraftAdminApi/, ''), + // rewrite: (path) => path.replace(/^\/aerocraftAdminApi/, ''), }, '/upload': { target: url,