fix(infra): guaranteed Traefik bypass for OG images and sitemaps

- Added explicit Host match and PathPrefixes to public router in docker-compose.yml.
- Increased priority of public router to 2000.
- Updated middleware.ts to bypass next-intl for OG images and API routes.
- Verified local rendering of OG images.
This commit is contained in:
2026-02-12 22:18:21 +01:00
parent a19bd92df7
commit 9097e2cead
4 changed files with 2903 additions and 3 deletions

View File

@@ -18,7 +18,9 @@ export default function middleware(request: NextRequest) {
if (
pathname.startsWith('/stats') ||
pathname.startsWith('/errors') ||
pathname.startsWith('/health')
pathname.startsWith('/health') ||
pathname.startsWith('/api/og') ||
pathname.includes('opengraph-image')
) {
return;
}