chore(server): set script flavor instead of NODE_ENV (#10121)

This commit is contained in:
forehalo
2025-02-12 08:49:51 +00:00
parent 58fed5928b
commit 72bf81245a
8 changed files with 28 additions and 15 deletions

View File

@@ -1,11 +1,10 @@
import '../prelude';
import { Logger } from '@nestjs/common';
import { CommandFactory } from 'nest-commander';
async function bootstrap() {
AFFiNE.metrics.enabled = false;
AFFiNE.doc.manager.enableUpdateAutoMerging = false;
process.env.SERVER_FLAVOR = 'script';
await import('../prelude');
const { CliAppModule } = await import('./app');
await CommandFactory.run(CliAppModule, new Logger()).catch(e => {
console.error(e);