Further fix to PAYLOAD_ADDRESS var

This commit is contained in:
3wc 2024-03-08 13:23:34 -03:00
parent 424359ec0f
commit 3a0b940bd4

View File

@ -8,8 +8,8 @@ app.get("/", (_, res) => {
res.redirect("/admin");
});
const PORT = process.env.PAYLOAD_PORT ?? 3000,
const HOST = process.env.PAYLOAD_ADDRESS ?? 'localhost',
const PORT = Number(process.env.PAYLOAD_PORT) ?? 3000;
const HOST = process.env.PAYLOAD_ADDRESS ?? 'localhost';
const start = async () => {
// Initialize Payload