Deployment unexpected error
Answered
Common Moorhen posted this in #help-forum
Common MoorhenOP
Hello, I deployed my next app using nextjs 14 App router. For now I am still facing the issue Page couldn't be rendered statically because it used
headers. The fact that I am not using any header manipulation in my root page, where the error is happening, makes me confused.8 Replies
Common MoorhenOP
Well its giving you the solution right there
Common MoorhenOP
i just deployed fix with the next-intl update, however i was not sure about the headers
NextIntl itself uses the headers
Answer
Common MoorhenOP
i changed it to the approach they write in their docs however i cant run the page locally currently, its most likely because its a server component that dont accept hooks like
useTranslations()Common MoorhenOP
in this case its suppose to be a client component rendered statically based on their docs, so ill try to use
getTranslations along with the unstable_setRequestLocale and seeCommon MoorhenOP
i resolved the issue, thanks for quick response!