Closed abolfazlcodes closed 5 months ago
Imagine having an articles page which has a single article as well which is dynamic [slug].tsx. During the build process, it throws this error:
articles
[slug].tsx
Build error occurred Error: Page "/articles/[slug]" is missing "generateStaticParams()" so it cannot be used with the "output: export" config.
How should we handle this situation. It is app router not page router to use generateStaticParams()
generateStaticParams()
Hey @abolfazlcodes, dynamic features are not supported with static exports: https://nextjs.org/docs/app/building-your-application/deploying/static-exports#unsupported-features
Imagine having an
articles
page which has a single article as well which is dynamic[slug].tsx
. During the build process, it throws this error:How should we handle this situation. It is app router not page router to use
generateStaticParams()