Browse Source

fix:修正环境变量传递

roxas 4 years ago
parent
commit
a3e7a294f1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      .umirc.ts

+ 1
- 1
.umirc.ts View File

@@ -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: [