-
|
I will make it simple: Link: File path: Expected: using
Now if I use the deprecated
I need to get these all of these I understand that This is an e-commerce, and there is no way I can set P.S - |
Beta Was this translation helpful? Give feedback.
Replies: 2 suggested answers 3 replies
-
|
You can learn more about the above here: https://nextjs.org/docs/basic-features/pages#two-forms-of-pre-rendering |
Beta Was this translation helpful? Give feedback.
-
|
Related: #17269 |
Beta Was this translation helpful? Give feedback.


getStaticPropsgenerates the page at build time. There's no possible way to know the custom query params your visitors can use at build time.getInitialPropsandgetServerSidePropscan know all the possible query params because the page is generated at runtime, whenever you receive a new request.You can learn more about the above here: https://nextjs.org/docs/basic-features/pages#two-forms-of-pre-rendering