Skip to content

Commit

Permalink
Bugfix/package-lock (#743)
Browse files Browse the repository at this point in the history
* Regenerate working lock that stopped build

* Add GlobalError component

* Update tsconfig.json files
  • Loading branch information
NiallJoeMaher authored Feb 20, 2024
1 parent b42326d commit 015228d
Show file tree
Hide file tree
Showing 4 changed files with 1,470 additions and 1,536 deletions.
26 changes: 26 additions & 0 deletions app/global-error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"use client";

import * as Sentry from "@sentry/nextjs";
import NextError from "next/error";
import React from "react";
import { useEffect } from "react";

export default function GlobalError({
error,
}: {
error: Error & { digest?: string };
}) {
useEffect(() => {
Sentry.captureException(error);
}, [error]);

return (
<html lang="en">
<body>
{/* This is the default Next.js error component but it doesn't allow omitting the statusCode property yet. */}
{/* eslint-disable-next-line @typescript-eslint/no-explicit-any */}
<NextError statusCode={undefined as any} />
</body>
</html>
);
}
4 changes: 2 additions & 2 deletions cdk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"inlineSources": true,
"experimentalDecorators": true,
"strictPropertyInitialization": false,
"typeRoots": ["./node_modules/@types"]
"typeRoots": ["./node_modules/@types"],
},
"exclude": ["lambdas", "node_modules", "cdk.out"]
"exclude": ["lambdas", "node_modules", "cdk.out"],
}
Loading

0 comments on commit 015228d

Please sign in to comment.