Files
calendar/apps/web/app/not-found.tsx
T
5d01eb2f38 fix: 404 collisions (#15249)
* fix: 404 collisions

* Added E2E test

* Removed await

* Attempting to fix E2E

* fingers crossed

Signed-off-by: zomars <zomars@me.com>

* fix: e2e tests

* fix: missing navigation to 404 page

* fix: don't interrupt post login navigation

* fix: Expect owner as possible host for RR events

---------

Signed-off-by: zomars <zomars@me.com>
Co-authored-by: Omar López <zomars@me.com>
2024-05-31 22:28:43 +00:00

19 lines
453 B
TypeScript

import type { GetStaticPropsContext } from "next";
import { getTranslations } from "@server/lib/getTranslations";
import NotFoundPage from "./404/page";
import { WithLayout } from "./layoutHOC";
const getData = async (context: GetStaticPropsContext) => {
const i18n = await getTranslations(context);
return {
i18n,
};
};
export const dynamic = "force-static";
export default WithLayout({ getLayout: null, getData, Page: NotFoundPage });