๐Ÿ“ฆ cloudflare / vinext

๐Ÿ“„ error.tsx ยท 13 lines
1
2
3
4
5
6
7
8
9
10
11
12
13/**
 * Next.js compat: not-found/basic โ€” error boundary at the error-boundary route
 * Source: https://github.com/vercel/next.js/blob/canary/test/e2e/app-dir/not-found/basic/app/error-boundary/error.js
 *
 * Key test: notFound() should propagate PAST this error boundary.
 * Error boundaries do NOT catch notFound(). Only not-found.tsx boundaries do.
 */
"use client";

export default function ErrorBoundary() {
  return <div>There was an error (should NOT appear for notFound)</div>;
}