From 1a406164d5623a7bd45fe3e7b905417bd4d4c333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=BA=AF?= Date: Fri, 5 Mar 2021 17:34:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E4=B8=AD=E4=BC=98=E5=85=88=E7=BA=A7=EF=BC=9A=20local=20>=20fes?= =?UTF-8?q?=5Fenv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-compiler/src/service/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fes-compiler/src/service/index.js b/packages/fes-compiler/src/service/index.js index c63f17ff..f3646740 100644 --- a/packages/fes-compiler/src/service/index.js +++ b/packages/fes-compiler/src/service/index.js @@ -152,10 +152,10 @@ export default class Service extends EventEmitter { const basePath = join(this.cwd, '.env'); const localPath = `${basePath}.local`; loadDotEnv(basePath); - loadDotEnv(localPath); if (process.env.FES_ENV) { loadDotEnv(`${basePath}.${process.env.FES_ENV}`); } + loadDotEnv(localPath); } async init() {