Skip to content

Instantly share code, notes, and snippets.

@mobinni
Last active December 17, 2015 23:39
Show Gist options
  • Save mobinni/02e5fae1f4e69c836373 to your computer and use it in GitHub Desktop.
Save mobinni/02e5fae1f4e69c836373 to your computer and use it in GitHub Desktop.
A Modern Isomorphic Stack with Redux - Part 1
'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