Skip to content

Commit 5823f72

Browse files
gabrielbullsourcecode911
authored andcommitted
Fixed website dev bug (react-navigation#1973)
1 parent 0cf3ca3 commit 5823f72

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

website/config/env.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ function getClientEnvironment(publicUrl) {
2222
PUBLIC_URL: JSON.stringify(publicUrl),
2323
}
2424
);
25-
return { 'process.env': processEnv };
25+
return {
26+
'process.env': processEnv,
27+
__DEV__: process.env.NODE_ENV === 'production' ? false : true,
28+
};
2629
}
2730

2831
module.exports = getClientEnvironment;

0 commit comments

Comments
 (0)