template-saas/apps/backend/dist/config/database.config.js
rckrdmrd 26f0e52ca7 feat: Initial commit - template-saas
Template base para proyectos SaaS multi-tenant.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React/Vite)
- apps/database (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:24 -06:00

19 lines
764 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.databaseConfig = void 0;
const databaseConfig = (configService) => ({
type: 'postgres',
host: configService.get('database.host'),
port: configService.get('database.port'),
database: configService.get('database.name'),
username: configService.get('database.user'),
password: configService.get('database.password'),
entities: [__dirname + '/../**/*.entity{.ts,.js}'],
synchronize: false,
logging: configService.get('nodeEnv') === 'development',
ssl: configService.get('nodeEnv') === 'production'
? { rejectUnauthorized: false }
: false,
});
exports.databaseConfig = databaseConfig;
//# sourceMappingURL=database.config.js.map