From 129466ed91ed362bb8a970ef7edf930ac411adec Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Sun, 21 Apr 2019 09:05:55 -0700 Subject: [PATCH] Yarn deploy sets production NODE_ENV --- shells/browser/shared/deploy.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shells/browser/shared/deploy.js b/shells/browser/shared/deploy.js index b1e5dd308d..349c6c8106 100644 --- a/shells/browser/shared/deploy.js +++ b/shells/browser/shared/deploy.js @@ -11,7 +11,10 @@ const main = async buildId => { execSync(`node ${join(root, './build')}`, { cwd: __dirname, - env: process.env, + env: { + ...process.env, + NODE_ENV: 'production', + }, stdio: 'inherit', });