Files
nextjs-shopify-hydrogen/lib/predictive-search-handlers.ts
T
2026-07-29 11:02:40 -04:00

12 lines
429 B
TypeScript

import { createPredictiveSearchServerHandlers } from "@shopify/hydrogen";
/**
* Predictive search server handlers, registered in the root middleware's
* `handleShopifyRoutes` wiring. The browser autocomplete endpoint is
* `/api/predictive-search` by default. Limited to products per
* `notes/predictive-search.md`.
*/
export const predictiveSearchHandlers = createPredictiveSearchServerHandlers({
types: ["PRODUCT"],
});