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
   treeShaking: true,
7
   treeShaking: true,
8
   disableGlobalVariables: true,
8
   disableGlobalVariables: true,
9
   "define": {
9
   "define": {
10
-    "process.env.API_ENV": "development"
10
+    "process.env.API_ENV": process.env.API_ENV
11
   },
11
   },
12
   devtool: 'cheap-module-eval-source-map',
12
   devtool: 'cheap-module-eval-source-map',
13
   plugins: [
13
   plugins: [