There was an error while loading. Please reload this page.
1 parent d799fc6 commit 7d6e33cCopy full SHA for 7d6e33c
1 file changed
src/generators/plugin-intercept.ts
@@ -20,8 +20,8 @@ const indexTpl = (name: string) => `export const interceptor = {
20
21
async intercept(query: string, context: {
22
fetch: typeof fetch
23
- }): Promise<{ query: string }> {
24
- // transform and return the modified query
+ }): Promise<{ query: string; overrides?: { searchType?: string; lang?: string; timeFilter?: string } }> {
+ // transform the query, and optionally override search params
25
return { query }
26
},
27
}
0 commit comments