umami/scripts/start-env.js
Yannick Decat 43f231eca4
Updated start-env with new NextStartOptions
Corrected error with port and hostname argument and removed unneeded array.
2024-06-25 15:33:19 +02:00

8 lines
182 B
JavaScript

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'
});