I am trying to show the user's email in navbar but there might be some problem. I am showing Navbar in root layout.js file. I made two files NavbarServer -> NavbarClient data is passing in that way. Nextjs at build time is showing me this error https://nextjs.org/docs/messages/dynamic-server-error
#I want to show the user's email in navbar (app router) DB = Supabase
8 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
Can you provide some code? I need more information to determine where is the error occurred
Here you go!
Normally, the cookies function should be called in the same stack as component is rendered. Try opting in dynamic rendering with segment configuration?
export const dynamic = 'force-dynamic'
export default function Layout() ...
Ok, let me try and get back to you
Ohh thanks it worked!
Nice! You can now mark it as the answer 