From 223b3932589cc110279a5c4655706321782e25cd Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 5 Sep 2024 14:07:30 +0200 Subject: [PATCH] fix: prod (#160) this comment has to be ignored for the production since dotenv doesnt exists in prod Reviewed-on: https://git.mylloon.fr/ConfrerieDuKassoulait/Botanique/pulls/160 Co-authored-by: Mylloon Co-committed-by: Mylloon --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 242d749..002ac0c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,6 +5,8 @@ const start_app = () => { // 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" });