fix(server): runtime config overrides won't affect static startup (#7110)

This commit is contained in:
forehalo
2024-05-30 09:11:34 +00:00
parent d7ced4a5d9
commit 622239fd41
2 changed files with 3 additions and 15 deletions

View File

@@ -4,6 +4,8 @@ import { Logger } from '@nestjs/common';
import { CommandFactory } from 'nest-commander';
async function bootstrap() {
AFFiNE.metrics.enabled = false;
AFFiNE.doc.manager.enableUpdateAutoMerging = false;
const { CliAppModule } = await import('./app');
await CommandFactory.run(CliAppModule, new Logger()).catch(e => {
console.error(e);