
Hi I have problem on build application that show me this error
Route /profile couldn't be rendered statically because it used cookies. See more info here: https://nextjs.org/docs/messages/dynamic-server-error",
pr:build: digest: 'DYNAMIC_SERVER_USAGE
I use like is in example of demo SSR nextjs just for different page export default async function ProfilePage() {
const user = await getLoggedInUser() return ( <ProfileView name={user?.name} email={user.email} />)
Are someone have same problem?

That seems to be a next.js problem. What version of next.js are you using? can you show the code of /profile?

"next": "^14.2.6" and here is profile ```export default async function ProfilePage() { const user = await getLoggedInUser()
if (!user) redirect('/login') return ( <> <ProfileView name={user?.name} email={user.email}> <h4 className="text-white font-mono">Overview Page</h4> </ProfileView> </> ) } ``` ProfileView is client component

I change to "next": "^14.1.3 " and its working so yes nextJS problem
Recommended threads
- Function gives unauthorized error when w...
I am on free tier. I have function that has three attributes: 1. A stand alone attribute (required) 2. A many to one relationship attribute 3. A many to man...
- Golang docs outdated
Golang docs on the website are update and some if not all methods are broken/ not updated
- Problem with login using Retool
I am using the Appwrite rest api to create an email session from Retool. My next api call is to create JWT. The call is failing because Retool is a closed envir...
