fix: exclude /api/version from auth middleware

The update banner needs to reach /api/version without the
jefflix-access cookie, otherwise it gets redirected to /gate.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-30 23:41:47 -07:00
parent b122d00be3
commit b86e7e7a1a
1 changed files with 1 additions and 1 deletions

View File

@ -20,6 +20,6 @@ export const config = {
* - /_next (Next.js internals) * - /_next (Next.js internals)
* - /favicon.ico, /icon*, /apple-icon*, /og-image* (static assets) * - /favicon.ico, /icon*, /apple-icon*, /og-image* (static assets)
*/ */
"/((?!gate|api/verify-code|_next|favicon\\.ico|icon|apple-icon|og-image).*)", "/((?!gate|api/verify-code|api/version|_next|favicon\\.ico|icon|apple-icon|og-image).*)",
], ],
} }