fix(analytics, perf): fix umami proxy route redirect and remove blocking 10MB video preload to fix pagespeed

This commit is contained in:
2026-06-21 10:44:08 +02:00
parent de8f41cc6d
commit 9edfe24509
4 changed files with 10 additions and 29 deletions

View File

@@ -9,8 +9,9 @@ export default createMiddleware({
export const config = {
// Match all pathnames except for
// - /api (API routes)
// - /stats (Analytics proxy)
// - /_next (Next.js internals)
// - /_static (inside /public)
// - all root files inside /public (e.g. /favicon.ico)
matcher: ['/((?!api|_next|assets|_static|_vercel|[\\w-]+\\.\\w+).*)']
matcher: ['/((?!api|stats|_next|assets|_static|_vercel|[\\w-]+\\.\\w+).*)']
};