Skip to content

SSR with Next JS 13 Pages Router #6284

Answered by joshpalmeroc
joshpalmeroc asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to resolve my issue by making copies of my existing components but removing the useRouter hook that was nested inside them. I think the current documentation on algolia site https://www.algolia.com/doc/guides/building-search-ui/going-further/server-side-rendering/react/#dynamic-routes is a little misleading because it doesn't mention that you need a serverUrl when doing dynamic routes only if you do the getServerSideProps way. I've added in a serverUrl and now everything seems to work. Thank you!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@joshpalmeroc
Comment options

Answer selected by joshpalmeroc
@joshpalmeroc
Comment options

@Haroenv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants