Clerk Authentication Not Working in Production (Next.js + Cloudflare Pages)
Unanswered
Sphynx posted this in #help-forum
SphynxOP
Message:
Hey everyone, I’m facing an issue with Clerk Authentication on my Next.js + Cloudflare application. It works perfectly in development, but as soon as I switch to production, I get the following error:
Setup Details:
Using Clerk @^4. (old version)
Implemented middleware.ts and all required configurations
Works fine in development, but breaks in production
Hosted on Cloudflare Pages/Workers
Issue:
Authentication fails when deployed to production
Middleware might not be executing properly
Possible misconfiguration with Cloudflare?
Hey everyone, I’m facing an issue with Clerk Authentication on my Next.js + Cloudflare application. It works perfectly in development, but as soon as I switch to production, I get the following error:
Setup Details:
Using Clerk @^4. (old version)
Implemented middleware.ts and all required configurations
Works fine in development, but breaks in production
Hosted on Cloudflare Pages/Workers
Issue:
Authentication fails when deployed to production
Middleware might not be executing properly
Possible misconfiguration with Cloudflare?