Files
nextjs-shopify-hydrogen/lib/route-templates.ts
T
2026-07-29 11:02:40 -04:00

8 lines
386 B
TypeScript

import { createShopifyRouteTemplates } from "@shopify/hydrogen";
// Canonicalize Shopify's collection-scoped product route to the product page this example handles.
// Add entries here if this example changes to custom product, collection, page, blog, or article paths.
export const routeTemplates = createShopifyRouteTemplates({
productInCollection: "/products/:productHandle",
});