Added script for starting with env variables.

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

No files matched your search

+4
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']);