MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / loadConfig

Function loadConfig

graph-ui/fixtures/atlas-sample/src/config.ts:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9}
10
11export function loadConfig(): AppConfig {
12 return {
13 host: process.env.HOST ?? '127.0.0.1',
14 port: Number(process.env.PORT ?? '8080'),
15 databaseUrl: process.env.DB_URL ?? 'memory://atlas-sample',
16 logLevel: process.env.LOG_LEVEL ?? 'info',
17 };
18}
19
20export function isProduction(): boolean {
21 return process.env.NODE_ENV === 'production';

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected