mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Yarn deploy sets production NODE_ENV
This commit is contained in:
@@ -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',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user