Updated start-env with new NextStartOptions
Corrected error with port and hostname argument and removed unneeded array.
This commit is contained in:
@@ -2,7 +2,6 @@ require('dotenv').config();
|
|||||||
const cli = require('next/dist/cli/next-start');
|
const cli = require('next/dist/cli/next-start');
|
||||||
|
|
||||||
cli.nextStart({
|
cli.nextStart({
|
||||||
'--port': process.env.PORT || 3000,
|
'port': process.env.PORT || 3000,
|
||||||
'--hostname': process.env.HOSTNAME || '0.0.0.0',
|
'hostname': process.env.HOSTNAME || '0.0.0.0'
|
||||||
_: [],
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user