library · inferred from evidence
@clerk/nextjs
A library for integrating Clerk authentication with Next.js applications.
- Infinite redirect loop in NextJS development environment
Infinite redirect loop in the Next.js dev environment right after logging in, with @clerk/nextjs 4.x on YOUR_HOST.
- `authMiddleware` builds `redirect_url` using `YOUR_HOST:3000` when NextJS runs inside Docker container
When Next.js runs inside a Docker container, authMiddleware builds redirect_url using YOUR_HOST:3000 instead of the container's actual host, breaking sign-in redirects.
- Clerk not compatible with Next.js 15 (auth() must be async)
What this covers: Upgrading a Next.js app to Next.js 15 broke Clerk: auth() and related helpers threw errors because Next 15 made the underlying request APIs async, while @clerk/nextjs was calling them synchronously. The fix that worked: Cl