mirror of
https://github.com/sortedcord/omnia.git
synced 2026-07-22 03:52:48 +05:30
refactor: switch to process.env for all packages, fix typos
This commit is contained in:
@@ -1,12 +1,4 @@
|
||||
import { z } from "zod";
|
||||
import dotenv from "dotenv";
|
||||
import path from "path";
|
||||
|
||||
// Load environment variables from .env file
|
||||
dotenv.config();
|
||||
// In a monorepo, the cwd might be a package subdirectory, so check parent directories as well
|
||||
dotenv.config({ path: path.resolve(process.cwd(), "../.env") });
|
||||
dotenv.config({ path: path.resolve(process.cwd(), "../../.env") });
|
||||
|
||||
const LLMConfigSchema = z.object({
|
||||
GOOGLE_API_KEY: z.string().min(1, "GOOGLE_API_KEY is required"),
|
||||
|
||||
Reference in New Issue
Block a user