mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 11:06:25 +08:00
feat(server): self-hosted worker (#10085)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import './config';
|
||||
|
||||
import { Plugin } from '../registry';
|
||||
import { WorkerController } from './controller';
|
||||
|
||||
@Plugin({
|
||||
name: 'worker',
|
||||
controllers: [WorkerController],
|
||||
if: config => config.isSelfhosted || config.node.dev || config.node.test,
|
||||
})
|
||||
export class WorkerModule {}
|
||||
Reference in New Issue
Block a user