mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-08-14 12:26:03 +00:00
fix(express deploy): fix situations when env variables doesn't load before request processing (#3231)
This commit is contained in:
+1
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user