MCPcopy
hub / github.com/TanStack/ai / loadEnvLocalFiles

Function loadEnvLocalFiles

packages/ai-code-mode/models-eval/run-eval.ts:70–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68const repoRoot = join(__dirname, '../../../')
69
70function loadEnvLocalFiles() {
71 const paths = [
72 join(repoRoot, 'examples/ts-code-mode-web/.env.local'),
73 join(repoRoot, 'examples/ts-code-mode-web/.env'),
74 join(repoRoot, '.env.local'),
75 join(repoRoot, '.env'),
76 join(repoRoot, 'packages/ai-code-mode/.env.local'),
77 join(__dirname, '.env.local'),
78 ]
79 for (const path of paths) {
80 if (existsSync(path)) {
81 loadDotenv({ path, override: false })
82 }
83 }
84}
85
86loadEnvLocalFiles()
87

Callers 1

run-eval.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected