mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* chore: add env to enable/disable multiplayer feature * fix merge conflict * rename env * add default true * add null check on ymap
20 lines
485 B
TypeScript
20 lines
485 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { EventsGateway } from './events.gateway';
|
|
import { YjsGateway } from './yjs.gateway';
|
|
import { AuthModule } from 'src/modules/auth/auth.module';
|
|
|
|
const providers = [];
|
|
|
|
if (process.env.COMMENT_FEATURE_ENABLE !== 'false') {
|
|
providers.unshift(EventsGateway);
|
|
}
|
|
|
|
if (process.env.ENABLE_MULTIPLAYER_EDITING !== 'false') {
|
|
providers.unshift(YjsGateway);
|
|
}
|
|
|
|
@Module({
|
|
imports: [AuthModule],
|
|
providers,
|
|
})
|
|
export class EventsModule {}
|