rsnext/examples/with-sentry/pages/404.tsx
Lazar Nikolov 2ce15c4d3c
update(examples): Update with-sentry example (#47855)
Updating the `with-sentry` example with latest dependencies versions, new feature docs, and also converted it to TypeScript.

## Documentation / Examples
- [x] Make sure the linting passes by running `pnpm build && pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2023-06-14 06:10:06 +00:00

6 lines
170 B
TypeScript

import Error from 'next/error'
export default function NotFound() {
// Opinionated: do not record an exception in Sentry for 404
return <Error statusCode={404} />
}