getStaticProps context params not showing custom query param #13919
-
I have this route /pages/propiedades/[id].js with this code: export async function getStaticProps(context) {
} And a component wit this link
This link goes to I'm doing something wrong? I want to get access to the two params (id, name) but only get id. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This answer should be helpful. To quote Tim's response:
The same is true of |
Beta Was this translation helpful? Give feedback.
-
Thank you. Now I understand. |
Beta Was this translation helpful? Give feedback.
This answer should be helpful.
To quote Tim's response:
The same is true of
getStaticProps
.