nested Dynamic route
Unanswered
Polar bear posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Polar bearOP
I'm trying to do generate static Params, I have the following /categories/[category]/[info] the first dynamic route [category] gets generated fine but the second one doesn't for some reasons
12 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Polar bearOP
here's some code
export async function generateStaticParams() {
return servicesInfo.map((info) => ({
info: info.id,
}))
}
export default async function Info({ params }: { params: { info: string } }) {
const sth = servicesInfo.find((service) => service.id == params.info);
return (
<div className="min-h-screen px-4 lg:px-20 py-20 lg:py-32">
the [info] dynamic route isn't getting statically generated, for those who are wondering I'm fetching from a Json file
![Avatar](https://cdn.discordapp.com/avatars/194128415954173952/708a8637ada505b6b7a85972807d9dca.webp?size=256)
Alfonsus Ardani
Send first generateStaticParams and or second one
We need all relevant code not just "some" code
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Polar bearOP
this is the second one
in the Info dynamic component
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Polar bearOP
bump