fix: prod (#160)
All checks were successful
Publish latest version / build (push) Successful in 1m31s
All checks were successful
Publish latest version / build (push) Successful in 1m31s
this comment has to be ignored for the production since dotenv doesnt exists in prod Reviewed-on: #160 Co-authored-by: Mylloon <kennel.anri@tutanota.com> Co-committed-by: Mylloon <kennel.anri@tutanota.com>
This commit is contained in:
parent
4eb05fa1ab
commit
223b393258
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@ const start_app = () => {
|
||||||
|
|
||||||
// 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" });
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue