Spaces:
Sleeping
Sleeping
feat: complete Ever-Brain engine, MCP server, CLI evb mcp command, Dockerfile and release workflow
61b1da1 Download packages/api/src/config.ts from projectsorg/ever-brain: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/spaces/projectsorg/ever-brain/resolve/main/packages/api/src/config.ts
- Command line
-
hf download hf://spaces/projectsorg/ever-brain/packages/api/src/config.ts
-
curl -L -o config.ts https://huggingface.co/spaces/projectsorg/ever-brain/resolve/main/packages/api/src/config.ts
442 Bytes
| import dotenv from 'dotenv'; | |
| dotenv.config(); | |
| export interface AppConfig { | |
| port: number; | |
| githubToken?: string; | |
| cacheTtlMs: number; | |
| nodeEnv: string; | |
| } | |
| export const config: AppConfig = { | |
| port: parseInt(process.env.API_PORT || process.env.PORT || '3000', 10), | |
| githubToken: process.env.GITHUB_TOKEN || undefined, | |
| cacheTtlMs: parseInt(process.env.CACHE_TTL_MS || '60000', 10), | |
| nodeEnv: process.env.NODE_ENV || 'development', | |
| }; | |