forked from administration/panel
chore: add PORT env variable
parent
0a3782946e
commit
7898453990
|
@ -4,7 +4,7 @@ const next = require("next");
|
||||||
|
|
||||||
const dev = process.env.NODE_ENV !== "production";
|
const dev = process.env.NODE_ENV !== "production";
|
||||||
const hostname = "localhost";
|
const hostname = "localhost";
|
||||||
const port = 3000;
|
const port = process.env.PORT ?? 3000;
|
||||||
// when using middleware `hostname` and `port` must be provided below
|
// when using middleware `hostname` and `port` must be provided below
|
||||||
const app = next({ dev, hostname, port });
|
const app = next({ dev, hostname, port });
|
||||||
const handle = app.getRequestHandler();
|
const handle = app.getRequestHandler();
|
||||||
|
|
Loading…
Reference in New Issue