Merge pull request #2314 from mho22/start-env-modification
Corrected and Updated start-env script
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
const cli = require('next/dist/cli/next-start');
|
const cli = require('next/dist/cli/next-start');
|
||||||
|
|
||||||
cli.nextStart(['-p', process.env.PORT || 3000, '-H', process.env.HOSTNAME || '0.0.0.0']);
|
cli.nextStart({
|
||||||
|
'--port': process.env.PORT || 3000,
|
||||||
|
'--hostname': process.env.HOSTNAME || '0.0.0.0',
|
||||||
|
_: [],
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user