chore: comments #158

Merged
Anri merged 1 commit from comments into main 2024-09-04 13:26:06 +02:00

View file

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