Yansen пре 2 година
родитељ
комит
3d60671e35
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3
    1
      config/config.js

+ 3
- 1
config/config.js Прегледај датотеку

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