add ability to disable FORCE_TO_HTTPS in prod

This commit is contained in:
Cassie Tarakajian 2018-08-09 15:43:44 -04:00
parent a1b9d394d7
commit b25f0d3ab5

View file

@ -89,7 +89,10 @@ module.exports = {
NODE_ENV: JSON.stringify('production'),
S3_BUCKET: process.env.S3_BUCKET ? `"${process.env.S3_BUCKET}"` : undefined,
S3_BUCKET_URL_BASE: process.env.S3_BUCKET_URL_BASE ? `"${process.env.S3_BUCKET_URL_BASE}"` : undefined,
AWS_REGION: process.env.AWS_REGION ? `"${process.env.AWS_REGION}"` : undefined
AWS_REGION: process.env.AWS_REGION ? `"${process.env.AWS_REGION}"` : undefined,
FORCE_TO_HTTPS: process.env.FORCE_TO_HTTPS === 'false' ?
JSON.stringify(false) :
undefined
}
}),
new webpack.optimize.CommonsChunkPlugin({