'DYNAMIC_SERVER_USAGE' error - generateStaticParams #64438
Unanswered
WillEtheridge
asked this question in
Help
Replies: 2 comments 1 reply
-
Same issue, did you solve this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I faced about same issue, but only happen if the generateStaticParams is returning empty array |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hi all.
I'm building a site that displays meal plans to users.
I'm trying to use generateStaticParams to create the routes to the pages.
Things are working fine when I run the app locally however when I build the app I receive the following error when trying to access one of the dynamic routes.
⨯ [Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
digest: 'DYNAMIC_SERVER_USAGE'
}
Here is a simplified version of my code that I am getting the error with.
There's something that I'm missing or not getting here but I can't for the life of me figure out what. Any help or guidance in the right direction is much appreciated.
Thanks!
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions