mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-27 10:24:48 +10:00
fix: auto-load .env, resolves #2987
This commit is contained in:
Vendored
+9
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user