From 723afd37a9e2cc8cfb927d2709636be4af1f8ce3 Mon Sep 17 00:00:00 2001 From: Chloe Date: Tue, 7 May 2024 15:41:30 +0700 Subject: [PATCH] fix: revert changes Signed-off-by: Chloe --- app/search/[collection]/page.tsx | 2 ++ app/search/page.tsx | 2 ++ 2 files changed, 4 insertions(+) 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.'