From c61907ad1dcafcefba8833f48f066276533ba02a Mon Sep 17 00:00:00 2001 From: MHO Date: Fri, 29 Sep 2023 17:22:11 +0200 Subject: [PATCH] Corrected error with port and hostname argument and added the extra empty array --- scripts/start-env.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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', + _: [], +});