diff --git a/scripts/start-env.js b/scripts/start-env.js index bfaf1330..e9fe2a4b 100644 --- a/scripts/start-env.js +++ b/scripts/start-env.js @@ -1,4 +1,8 @@ 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']); +cli.nextStart({ + '--port': process.env.PORT || 3000, + '--hostname': process.env.HOSTNAME || '0.0.0.0', + _: [], +});