We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8991e8 commit adf95d0Copy full SHA for adf95d0
backend/index.ts
@@ -9,7 +9,8 @@ import express from "express";
9
import { FileType } from "types";
10
import { slugify } from "utils/slugify";
11
12
-dotenv.config();
+const env = process.env.NODE_ENV || "local"; // "production" or "local"
13
+dotenv.config({ path: `.env.${env}` });
14
15
export const API_BASE = process.env.API_BASE;
16
0 commit comments