Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pick the correct Redux store configuration depending on the environment
if (process.env.NODE_ENV === 'production') {
module.exports = require('./configureStore.prod');
} else {
module.exports = require('./configureStore.dev');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment