Next.js Discord

Discord Forum

Head component is not being included into the html

Answered
Scraayp posted this in #help-forum
Open in Discord
Hey there,

I have been struggeling with this for a while now. My website is not reacting to my phone as it's supposed to. It's generating a desktop version of the website on phone while it's supposed to generate a mobile version. I found out the Head component with the viewport is not loading in how it's supposed to.

Do you guys know why it's not generating it.

My code:
https://gist.github.com/Scraayp/96d399ed4dc2a408ed43a4124a72dc71

PS: I commented the code that doesn't work
Answered by Scraayp
I found out a function is being called which I was not using, which was converting a viewport.
View full answer

1 Reply

I found out a function is being called which I was not using, which was converting a viewport.
Answer