indescriptCrayon
indescriptCrayon

Reputation: 1

Clerk NextJS Causing Multiple Page Redirects

I'm using clerk/nextjs 5.1.5 in my next 14.2.4 app with middleware.

My home page is not protected by middleware and is publicly accessible. I want my home page to be indexed by Google.

However, it isn't getting indexed by Google because Clerk is causing too many redirects when the Google bot goes to my home page. Has anyone run into this problem with Clerk before?

Google Test Live Url

Same issue but using the Lighthouse Chrome Extension

I tried:

Upvotes: 0

Views: 320

Answers (1)

Sarwan Azhar
Sarwan Azhar

Reputation: 16

you should use normal clerk middleware and the page u dont want to be protected you can do this:

<signedOut>
  <Home />
</signedOut>

Upvotes: 0

Related Questions