mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
refactor(server): config system (#11081)
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user