瀏覽代碼

fix:修正环境变量传递

roxas 4 年之前
父節點
當前提交
a3e7a294f1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      .umirc.ts

+ 1
- 1
.umirc.ts 查看文件

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