Skip to content

Open-source status page, incident response and uptime monitoring

fix: 404 layout (#2740)

Maximilian Kaskeafea9744f6e6
diff --git a/apps/web/src/app/(landing)/layout.tsx b/apps/web/src/app/(landing)/layout.tsx
index e8b074eb7..176928ed6 100644
--- a/apps/web/src/app/(landing)/layout.tsx
+++ b/apps/web/src/app/(landing)/layout.tsx
@@ -1,14 +1,5 @@
-import { Footer } from "../../content/footer";
-import { Header } from "../../content/header";
-import { SubNav } from "../../content/sub-nav";
+import { ContentLayout } from "../../content/layout";
export default function Layout({ children }: { children: React.ReactNode }) {
- return (
- <div className="mx-auto flex min-h-screen max-w-5xl flex-col gap-4 font-mono">
- <Header />
- <SubNav />
- <main className="flex-1 px-4 py-4">{children}</main>
- <Footer />
- </div>
- );
+ return <ContentLayout>{children}</ContentLayout>;
}
diff --git a/apps/web/src/app/not-found.tsx b/apps/web/src/app/not-found.tsx
index 3f52999e0..146fe446a 100644
--- a/apps/web/src/app/not-found.tsx
+++ b/apps/web/src/app/not-found.tsx
@@ -1,13 +1,16 @@
+import { ContentLayout } from "../content/layout";
import { CustomMDX } from "../content/mdx";
import { getUnrelatedPage } from "../content/utils";
export default function NotFound() {
const page = getUnrelatedPage("not-found");
return (
- <section className="prose dark:prose-invert max-w-none">
- <h1>{page.metadata.hero ?? page.metadata.title}</h1>
- <p className="text-lg">{page.metadata.description}</p>
- <CustomMDX source={page.content} />
- </section>
+ <ContentLayout>
+ <section className="prose dark:prose-invert max-w-none">
+ <h1>{page.metadata.hero ?? page.metadata.title}</h1>
+ <p className="text-lg">{page.metadata.description}</p>
+ <CustomMDX source={page.content} />
+ </section>
+ </ContentLayout>
);
}
diff --git a/apps/web/src/content/agent-recovery.ts b/apps/web/src/content/agent-recovery.ts
index 647d0546d..ebd160905 100644
--- a/apps/web/src/content/agent-recovery.ts
+++ b/apps/web/src/content/agent-recovery.ts
@@ -4,7 +4,6 @@ const BASE = "https://www.openstatus.dev";
export const AGENT_RECOVERY_LINKS = [
["Sitemap", "/sitemap.xml"],
["llms.txt", "/llms.txt"],
- ["Documentation", "/docs"],
["OpenAPI specification", "/openapi.json"],
["MCP server card", "/.well-known/mcp.json"],
] as const;
@@ -24,7 +23,14 @@ export function notFoundMarkdown(pathname: string): string {
No page exists at \`${encodeURI(pathname)}\` on openstatus.dev.
-## Where to look next
+## Are you looking for something specific?
+
+- [API Reference](https://api.openstatus.dev/v1)
+- [Documentation](${BASE}/docs)
+- [Dashboard](https://app.openstatus.dev)
+- [Global Speed Checker](${BASE}/play/checker)
+
+## For crawlers and agents
${links}
diff --git a/apps/web/src/content/layout.tsx b/apps/web/src/content/layout.tsx
new file mode 100644
index 000000000..2713542df
--- /dev/null
+++ b/apps/web/src/content/layout.tsx
@@ -0,0 +1,14 @@
+import { Footer } from "./footer";
+import { Header } from "./header";
+import { SubNav } from "./sub-nav";
+
+export function ContentLayout({ children }: { children: React.ReactNode }) {
+ return (
+ <div className="mx-auto flex min-h-screen max-w-5xl flex-col gap-4 font-mono">
+ <Header />
+ <SubNav />
+ <main className="flex-1 px-4 py-4">{children}</main>
+ <Footer />
+ </div>
+ );
+}