Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"motion": "^12.38.0",
"next": "16.0.10",
"next-auth": "5.0.0-beta.29",
"next-themes": "^0.4.6",
"octokit": "^5.0.4",
"posthog-js": "^1.280.1",
"posthog-node": "^5.10.3",
Expand Down
54 changes: 54 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions src/app/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import posthog from "posthog-js";
import { useEffect } from "react";

export default function Error({
export default function ErrorBoundary({
error,
reset,
}: {
Expand All @@ -30,14 +30,16 @@ export default function Error({
into it.
</p>
{error.message && (
<div className="border border-red-300 bg-red-50 rounded-sm p-3">
<p className="font-mono text-sm text-red-900">{error.message}</p>
<div className="border border-red-300 dark:border-red-900/50 bg-red-50 dark:bg-red-950/40 rounded-sm p-3">
<p className="font-mono text-sm text-red-900 dark:text-red-200">
{error.message}
</p>
</div>
)}
<button
type="button"
onClick={() => reset()}
className="w-full rounded-md bg-cyan px-4 py-2 font-medium text-foreground transition-all hover:opacity-80"
className="w-full rounded-md bg-cyan px-4 py-2 font-medium text-foreground dark:text-surface transition-all hover:opacity-80"
>
Try again
</button>
Expand Down
Loading