diff --git a/app/search/[collection]/page.tsx b/app/search/[collection]/page.tsx index 0c34864c9..ea52c14ab 100644 --- a/app/search/[collection]/page.tsx +++ b/app/search/[collection]/page.tsx @@ -20,6 +20,8 @@ import { } from 'lib/constants'; import { Suspense } from 'react'; +export const runtime = 'edge'; + export async function generateMetadata({ params }: { diff --git a/app/search/page.tsx b/app/search/page.tsx index 60f11b189..2f7a53bd4 100644 --- a/app/search/page.tsx +++ b/app/search/page.tsx @@ -3,6 +3,8 @@ import ProductGridItems from 'components/layout/product-grid-items'; import { defaultSort, sorting } from 'lib/constants'; import { getProducts } from 'lib/shopify'; +export const runtime = 'edge'; + export const metadata = { title: 'Search', description: 'Search for products in the store.'