diff --git a/app/[page]/opengraph-image.tsx b/app/[page]/opengraph-image.tsx index 031e73fc8..2fd59281e 100644 --- a/app/[page]/opengraph-image.tsx +++ b/app/[page]/opengraph-image.tsx @@ -1,6 +1,8 @@ import OpengraphImage from 'components/opengraph-image'; import { getPage } from 'lib/shopify'; +export const runtime = 'edge'; + export default async function Image({ params }: { params: { page: string } }) { const page = await getPage(params.page); const title = page.seo?.title || page.title; diff --git a/app/opengraph-image.tsx b/app/opengraph-image.tsx index 7a6f49f46..23762cbdd 100644 --- a/app/opengraph-image.tsx +++ b/app/opengraph-image.tsx @@ -1,5 +1,7 @@ import OpengraphImage from 'components/opengraph-image'; +export const runtime = 'edge'; + export default async function Image() { return await OpengraphImage(); } diff --git a/app/search/[collection]/opengraph-image.tsx b/app/search/[collection]/opengraph-image.tsx index 4efeb29c0..9eb9c47f7 100644 --- a/app/search/[collection]/opengraph-image.tsx +++ b/app/search/[collection]/opengraph-image.tsx @@ -1,6 +1,8 @@ import OpengraphImage from 'components/opengraph-image'; import { getCollection } from 'lib/shopify'; +export const runtime = 'edge'; + export default async function Image({ params }: { params: { collection: string } }) { const collection = await getCollection(params.collection); const title = collection?.seo?.title || collection?.title;