Przeglądaj źródła

fix:修正环境变量传递

roxas 4 lat temu
rodzic
commit
a3e7a294f1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      .umirc.ts

+ 1
- 1
.umirc.ts Wyświetl plik

@@ -7,7 +7,7 @@ const config: IConfig =  {
7 7
   treeShaking: true,
8 8
   disableGlobalVariables: true,
9 9
   "define": {
10
-    "process.env.API_ENV": "development"
10
+    "process.env.API_ENV": process.env.API_ENV
11 11
   },
12 12
   devtool: 'cheap-module-eval-source-map',
13 13
   plugins: [