Replies: 1 comment 1 reply
-
@jaybytez Did you find the solution? I am also stuck here. |
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.
-
Rephrasing a question I had earlier.
I understand dynamic routing to some level when we are talking about 'pages/post/[pid].js':
/pages/post/123
/pages/post/abc
I understand that during SSG these two are seen as distinct routes and produce two pages. And that with fallback = true, if someone hits with a valid:
/pages/post/story1
That the getStaticProps will run and provide data for 'story1' and this will be considered a new distinct route and product a page.
What I am wondering is whether the same URL can use query parameters to create unique dynamic routes. For instance, can I have something like:
/pages/post?id=abc
/pages/post?id=123
And these be considered unique dynamic routes?
Asking because we have an SPA application with some permalinks and so the main application is at something like /pages/post but we want to be able to SSG some of the permalinks using ?id=.
Beta Was this translation helpful? Give feedback.
All reactions