Next.js Discord

Discord Forum

Exporting metadata from a client page

Answered
JCo posted this in #help-forum
Open in Discord
JCoOP
I am having an issue where I need to display a dynamically rendered page title that has the user's name in it on the user profile page of my app, this page has to be a client page due to using clerk authentication for it. However, it wont let me export the metadata for the username etc from the client page, making it impossiblle to display in the browser what page you are on for the entire auth flow (sign-up, sign-in, user-profile). Is there a way to do this? I tried to export a metadata variable that can pass the values into the layout and this was not allowed and did not work as hoped for. Any solutions to this?

3 Replies