From b3c0df16cdcde4ae10d4e6daecd356613d4601bc Mon Sep 17 00:00:00 2001 From: s1gr1d Date: Tue, 18 Jun 2024 13:48:09 +0200 Subject: [PATCH] rephrase comment --- docs/platforms/javascript/guides/nextjs/manual-setup.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/platforms/javascript/guides/nextjs/manual-setup.mdx b/docs/platforms/javascript/guides/nextjs/manual-setup.mdx index d964985d62339..987e27f087625 100644 --- a/docs/platforms/javascript/guides/nextjs/manual-setup.mdx +++ b/docs/platforms/javascript/guides/nextjs/manual-setup.mdx @@ -183,7 +183,10 @@ export default function GlobalError({ error }: { error: Error & { digest?: strin return ( - {/* 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. */}