wobsoriano / nuxt-clerk-template

Auth starts here with the Nuxt and Clerk Demo
https://nuxt-clerk-template.vercel.app
78 stars 11 forks source link

Netlify and Clerk - handshake - too many redirects #17

Open kriss145 opened 6 days ago

kriss145 commented 6 days ago

Hi.

I'm using your code from your template in my application to have a Clerk auth.

Unfortunately on Netlify after log-in I have the problem with the message "ERR_TOO_MANY_REDIRECTS" when Clerk redirect me to the application with ?__clerk_handshake param in the query.

During the development all works good, also when I'm running the application locally (in production build).

This problem is on the Netlify. I can't find the problem.

But when I disable the server/middleware/clerk.ts - then I have not that redirect but then I have the error where withClerkMiddleware is required

Is any one know how to fix it?

wobsoriano commented 5 days ago

hey! thank you for reporting. I myself haven't tried deploying a Nuxt app in Netlify.

I will deploy a clone of this repo to Netlify and let you know what I'll find.

wobsoriano commented 5 days ago

So I deployed a copy of this to netlify and was able to replicate the infinite redirects - https://nuxt-clerk-template.netlify.app/

kriss145 commented 2 days ago

Yes, so it is Netlify problem? I think that somewhere there is the problem. Do u know how to fix that?