build
Some checks failed
Build & Deploy / deploy (push) Failing after 38s

This commit is contained in:
2026-01-17 16:45:36 +01:00
parent 013049e631
commit 8c319cd969
4 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
import { ImageResponse } from 'next/og';
import { getPostBySlug } from '@/lib/blog';
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);

View File

@@ -1,10 +1,10 @@
import { ImageResponse } from 'next/og';
import { getProductBySlug } from '@/lib/mdx';
export const runtime = 'edge';
export const runtime = 'nodejs';
export default async function Image({ params: { locale, slug } }: { params: { locale: string, slug: string[] } }) {
const productSlug = slug[slug.length - 1];
export default async function Image({ params: { locale, slug } }: { params: { locale: string, slug: string } }) {
const productSlug = slug;
const product = await getProductBySlug(productSlug, locale);
if (!product) {

File diff suppressed because one or more lines are too long