Updated start-env with new NextStartOptions

Corrected error with port and hostname argument and removed unneeded array.
This commit is contained in:
Yannick Decat 2024-06-25 15:33:19 +02:00 committed by GitHub
parent d2658458aa
commit 43f231eca4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,6 @@ require('dotenv').config();
const cli = require('next/dist/cli/next-start');
cli.nextStart({
'--port': process.env.PORT || 3000,
'--hostname': process.env.HOSTNAME || '0.0.0.0',
_: [],
'port': process.env.PORT || 3000,
'hostname': process.env.HOSTNAME || '0.0.0.0'
});