From 526399abe94e3b18e1f886737922d3e491c76b0f Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 25 十一月 2024 15:26:29 +0800
Subject: [PATCH] #

---
 zy-acs-flow/vite.config.js |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/zy-acs-flow/vite.config.js b/zy-acs-flow/vite.config.js
index 2d23684..1d38183 100644
--- a/zy-acs-flow/vite.config.js
+++ b/zy-acs-flow/vite.config.js
@@ -5,7 +5,6 @@
 // https://vitejs.dev/config/
 export default defineConfig(({ mode }) => {
   const env = loadEnv(mode, process.cwd());
-  console.log('Loaded environment variables:', env);
   return {
     plugins: [react()],
     resolve: {
@@ -18,18 +17,18 @@
       host: '0.0.0.0',
       proxy: {
         '/api': {
-          target: `http://${env.COOL_BASE_IP}:${env.COOL_BASE_PORT}`,
+          target: `http://${env.VITE_BASE_IP}:${env.VITE_BASE_PORT}`,
           changeOrigin: true,
           // rewrite: (path) => path.replace(/^\/api/, ''),
         },
         '/ws': {
-          target: `ws://${env.COOL_BASE_IP}:${env.COOL_BASE_PORT}`,
+          target: `ws://${env.VITE_BASE_IP}:${env.VITE_BASE_PORT}`,
           changeOrigin: true,
           ws: true,
         },
       },
     },
     base: './',
-    envPrefix: 'COOL_',
+    envPrefix: 'VITE_',
   };
 });
\ No newline at end of file

--
Gitblit v1.9.1