fix(og-image): resolve 404s, migrate middleware to proxy.ts, and fix local port conflict

This commit is contained in:
2026-02-17 01:31:13 +01:00
parent 11908cfc4e
commit 163b356920
13 changed files with 38 additions and 21 deletions

View File

@@ -3,6 +3,8 @@ import { getTranslations } from 'next-intl/server';
import { OGImageTemplate } from '@/components/OGImageTemplate';
import { getOgFonts, OG_IMAGE_SIZE } from '@/lib/og-helper';
export const size = OG_IMAGE_SIZE;
export const contentType = 'image/png';
export const runtime = 'nodejs';
export default async function Image({ params }: { params: Promise<{ locale: string }> }) {