refactor(server): reorganize server configs (#5753)

This commit is contained in:
liuyi
2024-02-02 08:32:06 +00:00
parent ee3d195811
commit bef266ae3b
36 changed files with 423 additions and 189 deletions

View File

@@ -677,7 +677,7 @@ query serverConfig {
baseUrl
name
features
flavor
type
}
}`,
};

View File

@@ -4,6 +4,6 @@ query serverConfig {
baseUrl
name
features
flavor
type
}
}

View File

@@ -71,6 +71,11 @@ export enum PublicPageMode {
Page = 'Page',
}
export enum ServerDeploymentType {
Affine = 'Affine',
Selfhosted = 'Selfhosted',
}
export enum ServerFeature {
Payment = 'Payment',
}
@@ -673,7 +678,7 @@ export type ServerConfigQuery = {
baseUrl: string;
name: string;
features: Array<ServerFeature>;
flavor: string;
type: ServerDeploymentType;
};
};