From e2b20810583f1c9b1a238eb2ef46f29fca84f44e Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Wed, 17 Apr 2024 21:38:19 -0500 Subject: [PATCH] Fix? --- app/[page]/opengraph-image.tsx | 2 ++ app/opengraph-image.tsx | 2 ++ app/search/[collection]/opengraph-image.tsx | 2 ++ 3 files changed, 6 insertions(+) diff --git a/app/[page]/opengraph-image.tsx b/app/[page]/opengraph-image.tsx index 031e73fc8f..2fd59281e8 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 7a6f49f461..23762cbdda 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 4efeb29c0e..9eb9c47f77 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;