Skip to content

Commit dda9647

Browse files
authored
fix(express deploy): fix situations when env variables doesn't load before request processing (anuraghazra#3231)
1 parent 8d7e9df commit dda9647

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

express.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
import "dotenv/config";
12
import statsCard from "./api/index.js";
23
import repoCard from "./api/pin.js";
34
import langCard from "./api/top-langs.js";
45
import wakatimeCard from "./api/wakatime.js";
56
import gistCard from "./api/gist.js";
67
import express from "express";
7-
import dotenv from "dotenv";
88

9-
dotenv.config();
109
const app = express();
1110
app.listen(process.env.port || 9000);
1211

0 commit comments

Comments
 (0)