mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-11 17:30:51 +08:00
Fixed website dev bug (#1973)
This commit is contained in:
@@ -22,7 +22,10 @@ function getClientEnvironment(publicUrl) {
|
||||
PUBLIC_URL: JSON.stringify(publicUrl),
|
||||
}
|
||||
);
|
||||
return { 'process.env': processEnv };
|
||||
return {
|
||||
'process.env': processEnv,
|
||||
__DEV__: process.env.NODE_ENV === 'production' ? false : true,
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = getClientEnvironment;
|
||||
|
||||
Reference in New Issue
Block a user