load-env.mjs
11 lines 339 B
Raw
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge Human 18 hours ago
1 /**
2 * Load .env from project root. Call at startup so process.env has API keys etc.
3 * .env is gitignored; use .env.example as a template.
4 */
5
6 import dotenv from 'dotenv';
7 import path from 'path';
8 import { getRepoRoot } from './repo-root.mjs';
9
10 const projectRoot = getRepoRoot();
11 dotenv.config({ path: path.join(projectRoot, '.env') });
File History 1 commit
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge Human 18 hours ago