From dda9647c4937fb87dda9ab02851f745427120d7f Mon Sep 17 00:00:00 2001 From: wolfcomp <4028289+wolfcomp@users.noreply.github.com> Date: Tue, 7 Nov 2023 05:54:07 +0100 Subject: [PATCH] fix(express deploy): fix situations when env variables doesn't load before request processing (#3231) --- express.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/express.js b/express.js index 99cc42db..ddc69ba7 100644 --- a/express.js +++ b/express.js @@ -1,12 +1,11 @@ +import "dotenv/config"; import statsCard from "./api/index.js"; import repoCard from "./api/pin.js"; import langCard from "./api/top-langs.js"; import wakatimeCard from "./api/wakatime.js"; import gistCard from "./api/gist.js"; import express from "express"; -import dotenv from "dotenv"; -dotenv.config(); const app = express(); app.listen(process.env.port || 9000);