Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move view-port tag from _document to _app in Next.JS projects. #573

Open
JayaKrishnaNamburu opened this issue May 16, 2021 · 0 comments
Open
Labels
Hacktoberfest react generators Issue related to the react generator

Comments

@JayaKrishnaNamburu
Copy link
Member

At the moment, when we generate a _document.js file for Next-JS we are adding the viewport in the HEAD using next/head. Next-JS now suggesting to move the viewport tags to _app.js. Please update Next generators to fix this.

More details about the warning https://nextjs.org/docs/messages/no-document-viewport-meta

_document.js

<Head>
   <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
</Head>
@JayaKrishnaNamburu JayaKrishnaNamburu added the react generators Issue related to the react generator label May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest react generators Issue related to the react generator
Projects
None yet
Development

No branches or pull requests

1 participant