Dynamic Route Error in Next.js when using @payloadcms/next RootLayout #11762
-
I encountered an issue while using the @payloadcms/next package in my Next.js application. During the build process, the following error is raised: ⨯ Internal error: Error: Route / with dynamic = "error" couldn't be rendered statically because it used headers. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Do you know whether payload supports nextjs' static exports? Or does it require a nextjs server at runtime too? Tauri nextjs apps by default require the static export because tauri doesn't have a nodejs runtime. If static exports don't work you either have to host your frontend on an actual server, or sidecar it. |
Beta Was this translation helpful? Give feedback.
Do you know whether payload supports nextjs' static exports? Or does it require a nextjs server at runtime too?
Tauri nextjs apps by default require the static export because tauri doesn't have a nodejs runtime. If static exports don't work you either have to host your frontend on an actual server, or sidecar it.