mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 13:17:10 +08:00
feat(core): add missing affine version header to server config (#12986)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a custom version header to server configuration requests for improved request context. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -25,6 +25,9 @@ export class ServerConfigStore extends Store {
|
|||||||
query: serverConfigQuery,
|
query: serverConfigQuery,
|
||||||
context: {
|
context: {
|
||||||
signal: abortSignal,
|
signal: abortSignal,
|
||||||
|
headers: {
|
||||||
|
'x-affine-version': BUILD_CONFIG.appVersion,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (serverConfigData.serverConfig.features.includes(ServerFeature.OAuth)) {
|
if (serverConfigData.serverConfig.features.includes(ServerFeature.OAuth)) {
|
||||||
@@ -32,6 +35,9 @@ export class ServerConfigStore extends Store {
|
|||||||
query: oauthProvidersQuery,
|
query: oauthProvidersQuery,
|
||||||
context: {
|
context: {
|
||||||
signal: abortSignal,
|
signal: abortSignal,
|
||||||
|
headers: {
|
||||||
|
'x-affine-version': BUILD_CONFIG.appVersion,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user