canner-firebase-cms icon indicating copy to clipboard operation
canner-firebase-cms copied to clipboard

Avoid using <title> within _document.js
's <Head>

Open Mosoc opened this issue 6 years ago • 0 comments

Warning: <title> should not be used in _document.js's <Head>. https://err.sh/next.js/no-document-title

The Next.js maintainer suggests to only put <title> element in _app.js. Also, It's more flexible to change title content in different pages or stages.

Ref: https://github.com/zeit/next.js/issues/4596 https://github.com/zeit/next.js/blob/master/errors/no-document-title.md

Mosoc avatar Apr 20 '19 04:04 Mosoc