NextJs App Router Infinite Loop when Index is not found #6560
Unanswered
wesleyjanse
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
We currently have an issue where we would get an infinite loop serverside and client side (depending which is catched by our error boundary) whenever an index is not found.
This is just an edge case, since we are in the setup of a new domain, and the customer still needs to configure the correct indices.
Anyways, I fixed it for now using the indexExists api on the searchClient.
Just wanted to ask if there is a better way to do this without having the use the full searchClient, since the lite client does not support this api.
Beta Was this translation helpful? Give feedback.
All reactions