mirror of
https://github.com/langchain-ai/llmanager.git
synced 2026-07-01 20:44:01 -04:00
11 lines
315 B
JavaScript
11 lines
315 B
JavaScript
const dotenv = require("dotenv");
|
|
|
|
// Check for TEST_ENV environment variable to determine which .env file to load
|
|
// Default to regular .env if not specified
|
|
|
|
const envFile =
|
|
process.env.TEST_ENV === "production" ? ".env.production" : ".env";
|
|
|
|
// Load the appropriate .env file
|
|
dotenv.config({ path: envFile });
|