Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello community I just started with dynamic routes in my project, I have read the documentation but I have not managed to get the parameters I need from the route.
Nextjs mentions this:
For example, the route /post/abc will have the following query object:
Similarly, the route /post/abc?foo=bar will have the following query object:
And my code is this
I would like to pass a query similar to the one mentioned in the documentation, I don't know if I'm doing something wrong in my code, or if I have to change the file name by two or more possible "variables" for example [rid,foo] or some other detail in getStaticPaths.
What will be the right way?
Beta Was this translation helpful? Give feedback.
All reactions