mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat(server): support selfhost licenses (#8947)
This commit is contained in:
@@ -46,6 +46,7 @@ import { UserModule } from './core/user';
|
||||
import { WorkspaceModule } from './core/workspaces';
|
||||
import { ModelsModule } from './models';
|
||||
import { REGISTERED_PLUGINS } from './plugins';
|
||||
import { LicenseModule } from './plugins/license';
|
||||
import { ENABLED_PLUGINS } from './plugins/registry';
|
||||
|
||||
export const FunctionalityModules = [
|
||||
@@ -203,7 +204,8 @@ export function buildAppModule() {
|
||||
GqlModule,
|
||||
StorageModule,
|
||||
ServerConfigModule,
|
||||
WorkspaceModule
|
||||
WorkspaceModule,
|
||||
LicenseModule
|
||||
)
|
||||
|
||||
// self hosted server only
|
||||
@@ -214,7 +216,8 @@ export function buildAppModule() {
|
||||
ENABLED_PLUGINS.forEach(name => {
|
||||
const plugin = REGISTERED_PLUGINS.get(name);
|
||||
if (!plugin) {
|
||||
throw new Error(`Unknown plugin ${name}`);
|
||||
new Logger('AppBuilder').warn(`Unknown plugin ${name}`);
|
||||
return;
|
||||
}
|
||||
|
||||
factor.use(plugin);
|
||||
|
||||
Reference in New Issue
Block a user