mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-13 16:16:46 +08:00
fix(server): app cannot start in graphql only flavor (#6598)
This commit is contained in:
@@ -124,13 +124,12 @@ function buildAppModule() {
|
||||
.use(DocModule)
|
||||
|
||||
// sync server only
|
||||
.useIf(config => config.flavor.sync, SyncModule)
|
||||
.useIf(config => config.flavor.sync, WebSocketModule, SyncModule)
|
||||
|
||||
// graphql server only
|
||||
.useIf(
|
||||
config => config.flavor.graphql,
|
||||
ServerConfigModule,
|
||||
WebSocketModule,
|
||||
GqlModule,
|
||||
StorageModule,
|
||||
UserModule,
|
||||
|
||||
Reference in New Issue
Block a user