Use next.js custom document to update the html and body tags

Опубликовано: 26 Апрель 2026
на канале: Nathan Krasney
511
6

Use next.js custom document to update the html and body tags

You do not have in next.js an HTML file explicitly. So how can you update the HTML and head tags? Correct by using the custom document. This might be needed, e.g., in case you migrate your react app to the next.js app as described in the video and if you create a next.js app from scratch.

Part of my new course, 'Migrate react app to next.js app'
Link to 50% discount for limited time and slots
https://nathankrasney.podia.com/migra...

Sections
00:00 Motivation
02:30 Custom Document
03:40 Create document file