Skip to content

Scheduling infrastructure for absolutely everyone.

fix: 404s becoming 500s (#15696)

Keith Williamsfa40f1ead5b6
diff --git a/apps/web/app/not-found.tsx b/apps/web/app/not-found.tsx
index ff586f73eae..a9a4bb5c925 100644
--- a/apps/web/app/not-found.tsx
+++ b/apps/web/app/not-found.tsx
@@ -1,17 +1,12 @@
-import NotFoundPage from "@pages/404";
-import { WithLayout } from "app/layoutHOC";
-import type { GetStaticPropsContext } from "next";
-
-import { getTranslations } from "@server/lib/getTranslations";
-
-const getData = async (context: GetStaticPropsContext) => {
- const i18n = await getTranslations(context);
-
- return {
- i18n,
- };
+import React from "react";
+
+const NotFound = () => {
+ return (
+ <div data-testid="404-page">
+ <h1>404 - Page Not Found</h1>
+ <p>Sorry, the page you are looking for does not exist.</p>
+ </div>
+ );
};
-export const dynamic = "force-static";
-
-export default WithLayout({ getLayout: null, getData, Page: NotFoundPage });
+export default NotFound;