Error "generateStaticParams()" so it cannot be used with "output: export" config. #56731
Replies: 1 comment 7 replies
-
Right, so if I make the assumption that you are using
To use Route handlers, you need a Node.js runtime running the Next.js Server (with next start). This is why the compiler wants you to define |
Beta Was this translation helpful? Give feedback.
-
Summary
I can't build my project, because it gives the following error:
Page "/api/auth/[...nextauth]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.
Even using
use client
orexport const dynamic = 'force-static'
in route.ts, my build still gives this errorI checked other discussions, but none of them solved my problem. If anyone knows what to do, I would be grateful.
versions used were:
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions