From 33ed13d255e9d92fd11ad43cdd6d51ca6c5b1fb4 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sat, 31 Jan 2026 10:25:25 +0100 Subject: [PATCH] og --- app/[locale]/[slug]/opengraph-image.tsx | 2 +- app/[locale]/api/og/product/route.tsx | 2 +- app/[locale]/blog/[slug]/opengraph-image.tsx | 2 +- app/[locale]/blog/opengraph-image.tsx | 2 +- app/[locale]/contact/opengraph-image.tsx | 2 +- app/[locale]/opengraph-image.tsx | 2 +- app/[locale]/products/opengraph-image.tsx | 2 +- app/[locale]/team/opengraph-image.tsx | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/[locale]/[slug]/opengraph-image.tsx b/app/[locale]/[slug]/opengraph-image.tsx index 41c93a6d..bf7b6cfc 100644 --- a/app/[locale]/[slug]/opengraph-image.tsx +++ b/app/[locale]/[slug]/opengraph-image.tsx @@ -2,7 +2,7 @@ import { ImageResponse } from 'next/og'; import { getPageBySlug } from '@/lib/pages'; import { OGImageTemplate } from '@/components/OGImageTemplate'; -export const runtime = 'edge'; +export const runtime = 'nodejs'; export default async function Image({ params: { locale, slug } }: { params: { locale: string, slug: string } }) { const pageData = await getPageBySlug(slug, locale); diff --git a/app/[locale]/api/og/product/route.tsx b/app/[locale]/api/og/product/route.tsx index 8f0de224..d8d599a6 100644 --- a/app/[locale]/api/og/product/route.tsx +++ b/app/[locale]/api/og/product/route.tsx @@ -4,7 +4,7 @@ import { getTranslations } from 'next-intl/server'; import { OGImageTemplate } from '@/components/OGImageTemplate'; import { NextRequest } from 'next/server'; -export const runtime = 'edge'; +export const runtime = 'nodejs'; export async function GET( request: NextRequest, diff --git a/app/[locale]/blog/[slug]/opengraph-image.tsx b/app/[locale]/blog/[slug]/opengraph-image.tsx index edfa6814..a12d7f26 100644 --- a/app/[locale]/blog/[slug]/opengraph-image.tsx +++ b/app/[locale]/blog/[slug]/opengraph-image.tsx @@ -2,7 +2,7 @@ import { ImageResponse } from 'next/og'; import { getPostBySlug } from '@/lib/blog'; import { OGImageTemplate } from '@/components/OGImageTemplate'; -export const runtime = 'edge'; +export const runtime = 'nodejs'; export default async function Image({ params: { locale, slug } }: { params: { locale: string, slug: string } }) { const post = await getPostBySlug(slug, locale); diff --git a/app/[locale]/blog/opengraph-image.tsx b/app/[locale]/blog/opengraph-image.tsx index 32618134..84dc000e 100644 --- a/app/[locale]/blog/opengraph-image.tsx +++ b/app/[locale]/blog/opengraph-image.tsx @@ -2,7 +2,7 @@ import { ImageResponse } from 'next/og'; import { getTranslations } from 'next-intl/server'; import { OGImageTemplate } from '@/components/OGImageTemplate'; -export const runtime = 'edge'; +export const runtime = 'nodejs'; export default async function Image({ params: { locale } }: { params: { locale: string } }) { const t = await getTranslations({ locale, namespace: 'Blog.meta' }); diff --git a/app/[locale]/contact/opengraph-image.tsx b/app/[locale]/contact/opengraph-image.tsx index 0db45425..d7a7d44f 100644 --- a/app/[locale]/contact/opengraph-image.tsx +++ b/app/[locale]/contact/opengraph-image.tsx @@ -2,7 +2,7 @@ import { ImageResponse } from 'next/og'; import { getTranslations } from 'next-intl/server'; import { OGImageTemplate } from '@/components/OGImageTemplate'; -export const runtime = 'edge'; +export const runtime = 'nodejs'; export default async function Image({ params: { locale } }: { params: { locale: string } }) { const t = await getTranslations({ locale, namespace: 'Contact' }); diff --git a/app/[locale]/opengraph-image.tsx b/app/[locale]/opengraph-image.tsx index 8a405205..f67602ee 100644 --- a/app/[locale]/opengraph-image.tsx +++ b/app/[locale]/opengraph-image.tsx @@ -2,7 +2,7 @@ import { ImageResponse } from 'next/og'; import { getTranslations } from 'next-intl/server'; import { OGImageTemplate } from '@/components/OGImageTemplate'; -export const runtime = 'edge'; +export const runtime = 'nodejs'; export default async function Image({ params: { locale } }: { params: { locale: string } }) { const t = await getTranslations({ locale, namespace: 'Index.meta' }); diff --git a/app/[locale]/products/opengraph-image.tsx b/app/[locale]/products/opengraph-image.tsx index 8a3648e4..79995d61 100644 --- a/app/[locale]/products/opengraph-image.tsx +++ b/app/[locale]/products/opengraph-image.tsx @@ -3,7 +3,7 @@ import { getProductBySlug } from '@/lib/mdx'; import { getTranslations } from 'next-intl/server'; import { OGImageTemplate } from '@/components/OGImageTemplate'; -export const runtime = 'edge'; +export const runtime = 'nodejs'; export default async function Image({ params: { locale, slug } }: { params: { locale: string, slug?: string[] } }) { const t = await getTranslations('Products'); diff --git a/app/[locale]/team/opengraph-image.tsx b/app/[locale]/team/opengraph-image.tsx index 86ebfd07..a9decaad 100644 --- a/app/[locale]/team/opengraph-image.tsx +++ b/app/[locale]/team/opengraph-image.tsx @@ -2,7 +2,7 @@ import { ImageResponse } from 'next/og'; import { getTranslations } from 'next-intl/server'; import { OGImageTemplate } from '@/components/OGImageTemplate'; -export const runtime = 'edge'; +export const runtime = 'nodejs'; export default async function Image({ params: { locale } }: { params: { locale: string } }) { const t = await getTranslations({ locale, namespace: 'Team' });