Skip to content
Open
Changes from 2 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
22 changes: 22 additions & 0 deletions packages/fern-docs/bundle/src/app/[host]/[domain]/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"use client";

import GradientExclamation from "@fern-docs/components/GradientExclamation";
import { useEffect } from "react";

export default function ErrorBoundary({ error }: { error: Error & { digest?: string } }) {
useEffect(() => {
console.error(`[domain-error-boundary] ${JSON.stringify(error)}`);
}, [error]);

return (
<div className="flex h-[calc(100svh-var(--header-height)-6rem)] w-screen flex-col items-center justify-center gap-6">
<GradientExclamation />
<div className="flex flex-col text-center">
<h1>Page not found!</h1>
<p className="text-(color:--grayscale-a9)">
We&apos;re sorry, we couldn&apos;t find the page you were looking for.
</p>
</div>
</div>
);
}