2016-11-08 23:11:12 +00:00
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
process.env.webpackAssets = JSON.stringify(require('./static/dist/manifest.json'));
|
|
|
|
process.env.webpackChunkAssets = JSON.stringify(require('./static/dist/chunk-manifest.json'));
|
|
|
|
}
|
2016-05-03 04:09:16 +00:00
|
|
|
require('babel-register');
|
|
|
|
require('babel-polyfill');
|
2017-12-13 19:56:24 +00:00
|
|
|
let parsed = require('dotenv').config();
|
|
|
|
//// in development, let .env values override those in the environment already (i.e. in docker-compose.yml)
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
for (let key in parsed) {
|
|
|
|
process.env[key] = parsed[key];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
require('./server/server');
|