// Minimal Pages Router override — prevents the default next/document-based
// error page from breaking App Router production builds.
function ErrorPage({ statusCode }: { statusCode?: number }) {
  return <p>Erro {statusCode ?? 'desconhecido'}</p>;
}
ErrorPage.getInitialProps = ({ res, err }: { res?: { statusCode: number }; err?: { statusCode: number } }) => ({
  statusCode: res?.statusCode ?? err?.statusCode ?? 500,
});
export default ErrorPage;
