fix: auto-load .env, resolves #2987

This commit is contained in:
Amruth Pillai
2026-05-08 11:57:59 +02:00
parent 2cd774dab7
commit 26ca5c29c3
13 changed files with 129 additions and 18 deletions
+9
View File
@@ -1,5 +1,14 @@
import { join } from "node:path";
import { createEnv } from "@t3-oss/env-core";
import { config } from "dotenv";
import { z } from "zod";
import { findWorkspaceRoot } from "@reactive-resume/utils/monorepo.node";
const workspaceRoot = findWorkspaceRoot();
if (workspaceRoot) {
config({ path: join(workspaceRoot, ".env"), quiet: true });
}
export const env = createEnv({
server: {