refactor(all): refactoring to remove monorepo taking to long to get it wokring as intended
This commit is contained in:
10
load-env.ts
Normal file
10
load-env.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
const path = require("path");
|
||||
const dotenv = require("dotenv");
|
||||
const dotenvExpand = require("dotenv-expand");
|
||||
|
||||
// Load the root .env file
|
||||
const envPath = path.resolve(__dirname, ".env");
|
||||
const envConfig = dotenv.config({path: envPath});
|
||||
|
||||
// Expand variables (e.g., `${VAR}`) in the .env file
|
||||
dotenvExpand.expand(envConfig);
|
||||
Reference in New Issue
Block a user