Next.js Discord

Discord Forum

Do projects set up for static export absolutely require predetermined paths

Answered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
It seems like they do, but maybe I'm missing something. I'm on v14, I can set up a [...slug]/page.tsx, but I am required to have a generateStaticParams that must return all possible paths. Please confirm.
Answered by Ray
yes, you need to provides all the params for it to generate the pages
View full answer

3 Replies

Answer
Cape lionOP
Thanks. Just trying to make sense of a project requirement I've been given that really doesn't make sense
@Cape lion Thanks. Just trying to make sense of a project requirement I've been given that really doesn't make sense
because next doesn't know what param it is if you don't provide it