Skip to content

Instantly share code, notes, and snippets.

View StasNemy's full-sized avatar
🏠
Working from home

Stanislav Nemytov StasNemy

🏠
Working from home
View GitHub Profile
@Froelund
Froelund / _error.tsx
Last active November 30, 2023 04:35
Next.js Typescript error reporting
import { captureException, flush } from '@sentry/nextjs';
import NextErrorComponent from 'next/error';
import type { ErrorProps } from 'next/error';
import type { NextPage } from 'next';
interface AppErrorProps extends ErrorProps {
err?: Error;
hasGetInitialPropsRun?: boolean;
}