Skip to content

Commit

Permalink
fix(express deploy): fix situations when env variables doesn't load b…
Browse files Browse the repository at this point in the history
…efore request processing (anuraghazra#3231)
  • Loading branch information
wolfcomp authored and AFCMS committed Dec 12, 2023
1 parent 6b87224 commit 7fca325
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions express.js
Original file line number Diff line number Diff line change
@@ -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);

Expand Down

0 comments on commit 7fca325

Please sign in to comment.