feat: use baseurl from server config (#5369)

This commit is contained in:
DarkSky committed 2023-12-21 12:52:38 +00:00
1 parent 9fbd9b39d6
commit aa4d42b36c
16 files changed
+88 -54

No files matched your search

@@ -10,6 +10,9 @@ export class ServerConfigType {
@Field({ description: 'server flavor' })
flavor!: string;
@Field({ description: 'server base url' })
baseUrl!: string;
}
export class ServerConfigResolver {
@@ -20,6 +23,7 @@ export class ServerConfigResolver {
return {
version: AFFiNE.version,
flavor: SERVER_FLAVOR,
baseUrl: AFFiNE.baseUrl,
};
}
}
+3
View File
@@ -8,6 +8,9 @@ type ServerConfigType {
"""server flavor"""
flavor: String!
"""server base url"""
baseUrl: String!
}
type UserQuotaHumanReadable {