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

Don't modify head tag in next app router example #5199

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

Conversation

moritzreiter
Copy link

@moritzreiter moritzreiter commented Nov 6, 2023

The Next docs for app router say that the <head> tag shouldn't be modified manually.

One repercussion of ignoring this advice is that Cypress e2e tests don't work anymore when testing an app router based Next app where the <head> tag was modified manually.

So I think the Mantine docs shouldn't propose doing this.

As far as I can tell, the <ColorSchemeScript /> works fine when put in the <body>.

@rtivital rtivital force-pushed the master branch 11 times, most recently from 9ea2fcd to eebd557 Compare December 8, 2023 13:46
The [Next docs for app router] say that the `<head>` tag shouldn't be modified manually.

One repercussion of ignoring this advice is that Cypress e2e tests don't work anymore when testing app router based Next app where the `<head>` tag was modified manually.

So I think the Mantine docs shouldn't propose doing this.

As far as I can tell, the `<ColorSchemeScript />` works fine when put in the `<body>`.
@rtivital rtivital added the Reviewed PR Reviewed PR, most likely will not be merged. PR may be kept open for context or as a reminder. label Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed PR Reviewed PR, most likely will not be merged. PR may be kept open for context or as a reminder.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants