teleporthq/teleport-code-generators

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

JayaKrishnaNamburu opened this issue · 0 comments

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>