refactor(server): config system (#11081)

This commit is contained in:
forehalo
2025-03-27 12:32:28 +00:00
parent 7091111f85
commit 0ea38680fa
274 changed files with 7583 additions and 5841 deletions
@@ -1,11 +1,11 @@
import './config';
import { Plugin } from '../registry';
import { WorkerController } from './controller';
import { Module } from '@nestjs/common';
@Plugin({
name: 'worker',
import { WorkerController } from './controller';
import { WorkerService } from './service';
@Module({
providers: [WorkerService],
controllers: [WorkerController],
if: config => config.isSelfhosted || config.node.dev || config.node.test,
})
export class WorkerModule {}