Skip to content

Commit

Permalink
rephrase comment
Browse files Browse the repository at this point in the history
  • Loading branch information
s1gr1d committed Jun 18, 2024
1 parent ae62b1f commit b3c0df1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/platforms/javascript/guides/nextjs/manual-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ export default function GlobalError({ error }: { error: Error & { digest?: strin
return (
<html>
<body>
{/* Passing `0` as `statusCode` as the type has to be a number, but we do not get a status code here. */}
{/* `NextError` is the default Next.js error page component. Its type
definition requires a `statusCode` prop. However, since the App Router
does not expose status codes for errors, we simply pass 0 to render a
generic error message. */}
<NextError statusCode={0} />
</body>
</html>
Expand Down

0 comments on commit b3c0df1

Please sign in to comment.