-
SummaryI wish it was more structured and semantic. Rendering results
<div id="__next">
<header>Website header</header>
<header>Website content</header>
<footer>Website header</footer>
</div>
<main id="__next">
<header>Website header</header>
<div>Website content</div>
<footer>Website footer</footer>
</main> Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
icyJoseph
May 15, 2024
Replies: 1 comment
-
Hi, Yeah I don't think this is possible in Pages Router, next.js/packages/next/src/server/render.tsx Line 1215 in 0b261f0 Semantically, it shouldn't matter, though, your main tag can still live within the Alternatively, App Router, gives you 100% control over this, so you might want to consider that option. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Pszz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Yeah I don't think this is possible in Pages Router,
next.js/packages/next/src/server/render.tsx
Line 1215 in 0b261f0
Semantically, it shouldn't matter, though, your main tag can still live within the
__next
root div.Alternatively, App Router, gives you 100% control over this, so you might want to consider that option.