chore(platform-analytics): 🔧 Configure TypeORM logging via environment variables for granular control
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
c1a5210f33
commit
070aa3dc7a
1 changed files with 4 additions and 1 deletions
|
|
@ -79,7 +79,10 @@ const registry = buildDeploymentRegistry({
|
|||
database: process.env.DB_NAME ?? 'lilith_analytics',
|
||||
autoLoadEntities: true,
|
||||
synchronize: process.env.NODE_ENV !== 'production',
|
||||
logging: process.env.NODE_ENV !== 'production',
|
||||
logging:
|
||||
process.env.TYPEORM_LOGGING === 'true'
|
||||
? 'all'
|
||||
: (['error', 'warn', 'schema', 'migration'] as const),
|
||||
};
|
||||
},
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue