Add project scaffolding and development infrastructure: - Add environment configuration files (.env.development, .env.example) with database, JWT, security, AI integration, logging, and CORS settings - Add .gitignore to exclude build artifacts, logs, IDE files, and environment variables - Add .prettierrc with single quotes and trailing commas configuration - Add multi-stage Dockerfile with development, build, and production stages - Ad
9 lines
319 B
TypeScript
9 lines
319 B
TypeScript
import { registerAs } from '@nestjs/config';
|
|
|
|
export default registerAs('ai', () => ({
|
|
deepseekApiKey: process.env.DEEPSEEK_API_KEY || '',
|
|
openrouterApiKey: process.env.OPENROUTER_API_KEY || '',
|
|
serviceUrl: process.env.AI_SERVICE_URL || 'http://localhost:8000',
|
|
enabled: process.env.AI_ENABLED === 'true',
|
|
}));
|