diff --git a/public/index.html b/public/index.html index 25c8942c..0951c720 100644 --- a/public/index.html +++ b/public/index.html @@ -2,7 +2,6 @@
- diff --git a/src/adapter/adapter.ts b/src/adapter/adapter.ts index b725c925..41705a81 100644 --- a/src/adapter/adapter.ts +++ b/src/adapter/adapter.ts @@ -15,39 +15,7 @@ import { SemanticQueriesRequest } from '@empathyco/x-types'; -export const adapter = { - ...platformAdapter, - search: { - ...platformAdapter.search, - defaultRequestOptions: { - ...(platformAdapter.search as any).defaultRequestOptions, - properties: { - ...(platformAdapter.search as any).defaultRequestOptions.properties, - cache: 'force-cache' - } - } - }, - relatedTags: { - ...platformAdapter.relatedTags, - defaultRequestOptions: { - ...(platformAdapter.relatedTags as any).defaultRequestOptions, - properties: { - ...(platformAdapter.relatedTags as any).defaultRequestOptions.properties, - cache: 'force-cache' - } - } - }, - nextQueries: { - ...platformAdapter.nextQueries, - defaultRequestOptions: { - ...(platformAdapter.nextQueries as any).defaultRequestOptions, - properties: { - ...(platformAdapter.nextQueries as any).defaultRequestOptions.properties, - cache: 'force-cache' - } - } - } -}; +export const adapter = platformAdapter; /* Code sample about how to extend the result mapper with more fields. */ @@ -65,6 +33,39 @@ declare module '@empathyco/x-types' { } } +adapter.search = platformAdapter.search.extends