Skip to content

Commit

Permalink
fix: [] translations 404 pages (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattvanvoorst-contentful authored Oct 20, 2022
2 parents 92d6ce4 + 9a425a7 commit eb07e3a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import React from 'react';
import { GetStaticProps } from 'next';

import PageError from '@src/components/errors/page-error';
import { getServerSideTranslations } from '@src/lib/get-serverside-translations';

const ErrorPage404 = () => {
return <PageError error={{ code: 404 }} />;
};

export const getStaticProps: GetStaticProps = async ({ locale }) => {
return {
props: {
...(await getServerSideTranslations(locale)),
},
};
};

export default ErrorPage404;

0 comments on commit eb07e3a

Please sign in to comment.