refactor(platform-admin): ♻️ Optimize AppModule initialization by restructuring dependencies/providers for lazy-loading improvements

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-02-28 16:13:50 -08:00
parent 6b165c4ba5
commit 0b71a234c8

View file

@ -48,7 +48,7 @@ const registry = buildDeploymentRegistry({
password: config.get('DATABASE_POSTGRES_PASSWORD', 'postgres'),
database: config.get('DATABASE_POSTGRES_NAME', 'platform_admin') as string,
autoLoadEntities: true,
synchronize: config.get('DB_SYNCHRONIZE', 'false') === 'true',
synchronize: false,
logging: config.get('DB_LOGGING', 'false') === 'true',
migrations: ['dist/database/migrations/*'],
migrationsRun: config.get('DB_MIGRATIONS_RUN', 'false') === 'true',