Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
Server config: iteration 1
/* config/ */
// Importing shared config part
import config from './server';
// Defining name of the bundle
config.bundle = 'app';
// Defining port of bundle
// In production we will store this in APP_PORT environment variable
// In development it will be 3500
config.appPort = process.env.APP_PORT || 3500;
export default config;
/* config/server.js */
// This is shared between all bundles
let config = {};
// Defining environment
config.env = process.env.NODE_ENV || 'development';
// Defining port for webpack dev server (details below)
config.devPort = 3001;
export default config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment