diff --git a/pages/imprint.tsx b/pages/imprint.tsx index 2c9a75a..e4d8116 100644 --- a/pages/imprint.tsx +++ b/pages/imprint.tsx @@ -41,7 +41,7 @@ function Imprint(): JSX.Element { ) } -export async function getServerSideProps({ locale }) { +export async function getStaticProps({ locale }) { return { props: { ...(await serverSideTranslations(locale, ['index', 'imprint', 'common'])) diff --git a/pages/index.tsx b/pages/index.tsx index 9ea1c26..e2fb9bd 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -47,7 +47,7 @@ function Index(): JSX.Element { ) } -export async function getServerSideProps({ locale }) { +export async function getStaticProps({ locale }) { return { props: { ...(await serverSideTranslations(locale, ['common', 'index', 'errors'])), diff --git a/pages/privacy.tsx b/pages/privacy.tsx index 9c5836a..1920ac6 100644 --- a/pages/privacy.tsx +++ b/pages/privacy.tsx @@ -166,7 +166,7 @@ function Privacy(): JSX.Element { ) } -export async function getServerSideProps({ locale }) { +export async function getStaticProps({ locale }) { return { props: { ...(await serverSideTranslations(locale, ['index', 'privacy', 'common'])),