comments
All checks were successful
Lint and Format Check / lint-and-format (pull_request) Successful in 11s

take from #154 e43234f790
This commit is contained in:
Mylloon 2024-09-04 13:25:11 +02:00
parent 110142c2e7
commit 37aeac0fdf
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,12 +1,10 @@
/** Load the app. */
/** Load the app */
const start_app = () => {
import("./load").then((l) => l.run().catch((error) => console.error(error)));
};
// Load .env if not in prod
if (process.env.NODE_ENV !== "production") {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import("dotenv").then((c) => {
c.config({ path: "./config/.env" });