Next.js Discord

Discord Forum

How to update query param in getServersideProps?

Unanswered
Swedish Elkhound posted this in #help-forum
Open in Discord
Swedish ElkhoundOP
Hello, I have a page route that I want to already pass in an ID that was generated in teh serverSideProps, how can I set the query params so that when teh page renders, it already has the ID as part of the URL search/query params?

0 Replies