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 authored and GitHub committed 2025-07-02 04:56:57 +00:00
1 parent a2810f3f61
commit 3d12bb2adf
1 file changed
+6
@@ -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 {