Add force SSL check.

This commit is contained in:
Mike Cao 2020-10-03 21:54:21 -07:00
parent fc22f5969c
commit 4cafa68e23
4 changed files with 18 additions and 4 deletions

View file

@ -4,9 +4,7 @@ const pkg = require('./package.json');
module.exports = {
env: {
VERSION: pkg.version,
},
serverRuntimeConfig: {
PROJECT_ROOT: __dirname,
FORCE_SSL: !!process.env.FORCE_SSL,
},
webpack(config) {
config.module.rules.push({