fix(analytics): bypass gatekeeper and middleware for tracking endpoints

This commit is contained in:
2026-02-06 23:16:52 +01:00
parent 57d6a8a0fd
commit 0ae02ba73b
2 changed files with 17 additions and 8 deletions

View File

@@ -62,5 +62,5 @@ export default function middleware(request: NextRequest) {
export const config = {
// Match only internationalized pathnames
matcher: ['/((?!api|_next|_vercel|health|.*\\..*).*)', '/', '/(de|en)/:path*'],
matcher: ['/((?!api|_next|_vercel|stats|errors|health|.*\\..*).*)', '/', '/(de|en)/:path*'],
};