generateStaticParams with param that's not included in route #51430
Unanswered
SamKomesarook
asked this question in
App Router
Replies: 2 comments 3 replies
-
Could you make a API endpoint that fetches all ID:s maybe and use that to generate the pages? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Any updated regarding this question? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to pass a param from generateStaticParams to the generated page that isn't included in the route?
For example, if we want the generated routes to be easier to read, such as
blogs/get-started
orblogs/how-it-works
, but we want an ID to easily query for the page content, is there a way to get the ID in generateStaticParams and pass it to the page without adding it to the URL?Beta Was this translation helpful? Give feedback.
All reactions