Next.js Discord

Discord Forum

Accessing dynamic routes giving 404 error using output: 'export'

Unanswered
Black-billed Cuckoo posted this in #help-forum
Open in Discord
Black-billed CuckooOP
Hi,
I am facing one issue regarding dynamic routes in app router.
In documentation it says that for dynamic paths use generateStaticParams() function. and predefined the possible values. but I don't have a possible values. It can be uuid or anything. So I am return empty array [] in generateStaticParams(). When I export the project to out folder and test it it shows 404 error. How can I achieve this without declaring dynamic values? Can anyone guide me?

0 Replies