Skip to content

Glossary: Next.js Basics

global-error.js

A special file that handles errors in the root layout itself. It replaces the whole page, so it must draw its own `<html>` and `<body>`.

Where the book teaches it

Related terms

error.jsRoot layout