Added script for starting with env variables.

This commit is contained in:
Mike Cao 2020-09-30 22:56:23 -07:00
parent 5068ab12a9
commit 074f248bcd
2 changed files with 6 additions and 1 deletions

4
scripts/start-env.js Normal file
View file

@ -0,0 +1,4 @@
require('dotenv').config();
const cli = require('next/dist/cli/next-start');
cli.nextStart(['-p', process.env.PORT || 3000, '-H', process.env.HOSTNAME || '0.0.0.0']);