From 25bd375b943e58261c0a33e68f8fe891cdd738f0 Mon Sep 17 00:00:00 2001 From: Mavrik Date: Wed, 4 Sep 2024 14:40:54 +0200 Subject: [PATCH] fix: move donev and enable port config --- siren.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/siren.js b/siren.js index 974ddd11..99e1f37e 100644 --- a/siren.js +++ b/siren.js @@ -1,11 +1,12 @@ const express = require('express') const next = require('next') const EventSource = require('eventsource') +require('dotenv').config() + const dev = process.env.NODE_ENV !== 'production' const app = next({ dev }) const handle = app.getRequestHandler() const PORT = process.env.PORT || 3000 -require('dotenv').config() const backendUrl = process.env.BACKEND_URL