Yansen 2 年 前
コミット
3d60671e35
共有1 個のファイルを変更した3 個の追加1 個の削除を含む
  1. 3
    1
      config/config.js

+ 3
- 1
config/config.js ファイルの表示

@@ -6,9 +6,11 @@ import proxy from './proxy';
6 6
 import routes from './routes';
7 7
 const { REACT_APP_ENV } = process.env;
8 8
 
9
+console.log('REACT_APP_ENV', REACT_APP_ENV);
10
+
9 11
 export default defineConfig({
10 12
   define: {
11
-    API_BASE: 'http://machine.njyunzhi.com',
13
+    API_BASE: REACT_APP_ENV == 'dev' ? '' : 'http://machine.njyunzhi.com',
12 14
     // API_BASE: 'http://192.168.89.147',
13 15
   },
14 16
   hash: true,