You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a django template that extends django_nextjs/document_base.html:
{%extends"django_nextjs/document_base.html"%}{%blockhead%}<!-- ... the content you want to place at the beginning of "head" tag ... -->
{{ block.super }}
<!-- ... the content you want to place at the end of "head" tag ... -->{%endblock%}{%blockbody%}
... the content you want to place at the beginning of "body" tag ...
... e.g. include the navbar template ...
{{ block.super }}
... the content you want to place at the end of "body" tag ...
... e.g. include the footer template ...
{%endblock%}
The text was updated successfully, but these errors were encountered:
danialkeimasi
changed the title
Bypass hydration error with Nextjs 13+ app router
Customizing the HTML Response: Fix hydration error with Nextjs 13+ app router
Jun 12, 2023
How to Reproduce
In Nextjs 13+, customize the root layout in
app
directory:Write a django template that extends
django_nextjs/document_base.html
:Pass the template name to
render_nextjs_page
:The text was updated successfully, but these errors were encountered: