fix(express deploy): fix situations when env variables doesn't load before request processing (#3231)

This commit is contained in:
wolfcomp 2023-11-07 05:54:07 +01:00 committed by GitHub
parent 8d7e9df697
commit dda9647c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);