diff --git a/app/(cms)/opengraph-image.tsx b/app/(cms)/opengraph-image.tsx index 9f954dde6..db45917a7 100644 --- a/app/(cms)/opengraph-image.tsx +++ b/app/(cms)/opengraph-image.tsx @@ -1,7 +1,7 @@ import OpengraphImage from 'components/opengraph-image'; import { getPage } from 'lib/shopware'; -export const runtime = 'nodejs'; +export const runtime = 'edge'; export default async function Image({ params }: { params: { page: string } }) { const page = await getPage(params.page); diff --git a/app/opengraph-image.tsx b/app/opengraph-image.tsx index 29e3f703a..23762cbdd 100644 --- a/app/opengraph-image.tsx +++ b/app/opengraph-image.tsx @@ -1,6 +1,6 @@ import OpengraphImage from 'components/opengraph-image'; -export const runtime = 'nodejs'; +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 d1e08d1f7..98cd40853 100644 --- a/app/search/(collection)/opengraph-image.tsx +++ b/app/search/(collection)/opengraph-image.tsx @@ -1,7 +1,7 @@ import OpengraphImage from 'components/opengraph-image'; import { getCollection } from 'lib/shopware'; -export const runtime = 'nodejs'; +export const runtime = 'edge'; export default async function Image({ params }: { params: { collection: string } }) { const collection = await getCollection(params.collection);