Skip to content
This repository has been archived by the owner on Aug 9, 2019. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mosoc
Copy link

@Mosoc Mosoc commented Apr 20, 2019

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:
vercel/next.js#4596
https://github.com/zeit/next.js/blob/master/errors/no-document-title.md

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant