fix(engine): disable Sweetistics fallback when forcing graphql

This commit is contained in:
Peter Steinberger
2025-12-26 15:10:10 +01:00
parent 9a4465f05d
commit dee304235b
5 changed files with 30 additions and 11 deletions
+4
View File
@@ -13,3 +13,7 @@ export function shouldUseSweetistics(engine: EngineMode, _hasApiKey: boolean): b
if (engine === 'graphql') return false;
return false; // auto: GraphQL primary, Sweetistics only as fallback
}
export function shouldAllowSweetisticsFallback(engine: EngineMode, hasApiKey: boolean): boolean {
return engine === 'auto' && hasApiKey;
}