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:
EYHN
2025-07-02 12:56:57 +08:00
committed by GitHub
parent a2810f3f61
commit 3d12bb2adf
@@ -25,6 +25,9 @@ export class ServerConfigStore extends Store {
query: serverConfigQuery,
context: {
signal: abortSignal,
headers: {
'x-affine-version': BUILD_CONFIG.appVersion,
},
},
});
if (serverConfigData.serverConfig.features.includes(ServerFeature.OAuth)) {
@@ -32,6 +35,9 @@ export class ServerConfigStore extends Store {
query: oauthProvidersQuery,
context: {
signal: abortSignal,
headers: {
'x-affine-version': BUILD_CONFIG.appVersion,
},
},
});
return {