diff --git a/src/pages/404.tsx b/src/pages/404.tsx index aadf66175..17c5b6966 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -9,7 +9,6 @@ import { } from '@mantine/core'; import React from 'react'; -import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; import Link from 'next/link'; const useStyles = createStyles((theme) => ({ @@ -94,12 +93,3 @@ export default function Custom404() { ); } - -export async function getStaticProps({ locale }: { locale: string }) { - return { - props: { - ...(await serverSideTranslations(locale, ['common'])), - // Will be passed to the page component as props - }, - }; -}