After building my News Website using Next.js with Server Side Rendering, I encountered an issue with setting the page title. Despite using export const metadata = { title: "TEST" }, the title remained unchanged. The metadata object appears to be correctly structured, but the expected effect is missing.
You can find the repository here: https://github.com/BlendEmini/NewsBlog-ssr
If you have any insights or suggestions on why the metadata object isn't working as intended, or if there's a better approach for server-side rendering setup in Next.js, please provide guidance. Thank you for your help!
In attempting to set the page title in my Next.js News Website, I tried different methods without success. From using the component to defining metadata within the HTML, and finally implementing export const metadata in each page file, none of these approaches yielded the desired result. Despite thorough checks, the page title remains static. Any advice on resolving this issue or suggesting alternative solutions would be greatly appreciated.