Next.js Discord

Discord Forum

Getting <!-- --> in my title

Answered
GabrieleAGenius posted this in #help-forum
Open in Discord
So, in the attachments as you can see, when I run production build from my computer the title is normal: <the page title> | Scout Blog but instead, when I upload and build my code on my VPS and open the website, there's this <!-- --> in between the page title and the |.
This is where I define the title:
<title>{post.title} | Post Blog</title>

I'm 100% sure that its not inside post.title (also because its an object rendered from getServerSideProps, from a database request).
How do I solve this issue?
Answered by GabrieleAGenius
fixed with next.js 14
View full answer

3 Replies

yeah exactly, so people here just come to ask questions and don't even bother to help others?
Guess my only hope is GitHub Issues
fixed with next.js 14
Answer