diff --git a/src/pages/404.astro b/src/pages/404.astro new file mode 100644 index 00000000..a55afa9a --- /dev/null +++ b/src/pages/404.astro @@ -0,0 +1,71 @@ +--- +/** + * Custom 404 page. + * + * Overrides Starlight's built-in 404 so we can fire a Rudderstack `docs_404` + * track event with the originally-requested URL. Without this, every 404 + * visit logs `https://docs.warp.dev/404/` — hiding which paths are actually + * broken. + * + * Uses StarlightPage so the full site chrome (nav, head, Rudderstack snippet, + * Vercel Analytics) is inherited automatically. + */ +import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro'; +--- + + +
+

+ The page you are looking for does not exist or has been moved. Use the search or navigation + to find what you need. +

+

+ Go to the docs home +

+
+
+ + + + +