fix(ci): update proxy matcher and traefik public router for image optimizer loopback
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 19s
Build & Deploy / 🧪 QA (push) Successful in 1m31s
Build & Deploy / 🏗️ Build (push) Successful in 2m34s
Build & Deploy / 🚀 Deploy (push) Successful in 25s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 50s
Build & Deploy / 🔔 Notify (push) Successful in 3s

This commit is contained in:
2026-08-17 18:22:45 +02:00
parent 35fb31249a
commit 5006163ddf
4 changed files with 30 additions and 7 deletions

View File

@@ -7,11 +7,12 @@ export default createMiddleware({
});
export const config = {
// Match all pathnames except for
// 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|stats|_next|assets|_static|_vercel|[\\w-]+\\.\\w+).*)']
// - /_next (Next.js internals & image optimizer)
// - /assets, /_static (static files in /public)
// - all files with an extension (e.g. /favicon.ico, .JPG, .png, .webp, .svg)
matcher: ['/((?!api|stats|_next|assets|_static|_vercel|.*\\..*).*)']
};