Last active
December 17, 2015 23:39
-
-
Save mobinni/02e5fae1f4e69c836373 to your computer and use it in GitHub Desktop.
A Modern Isomorphic Stack with Redux - Part 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const env = process.env.NODE_ENV || 'DEVELOPMENT'; | |
// set env variable | |
const hasSSREnabled = (process.env.SSR || process.argv[2] === 'ssr') || false; | |
export default { | |
name: env, | |
isProduction: env === 'PRODUCTION', | |
isDevelopment: env === 'DEVELOPMENT', | |
ssrEnabled: hasSSREnabled | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment