Next.js Discord

Discord Forum

digest: 'DYNAMIC_SERVER_USAGE'

Unanswered
Common Moorhen posted this in #help-forum
Open in Discord
Common MoorhenOP
Hello i have a problem rendering a page in production.

The following error is: [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.]

From my thoughts I believe its because I work with headers imported from next/headers in my server component. I am trying to retrieve value from headers thats been set in the middleware.

2 Replies

Common MoorhenOP
middleware:
server component: