Switch to static props

This commit is contained in:
Marvin Sextro 2021-07-03 11:59:59 +02:00
parent c9390b6277
commit 9524a479b6
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ function Imprint(): JSX.Element {
) )
} }
export async function getServerSideProps({ locale }) { export async function getStaticProps({ locale }) {
return { return {
props: { props: {
...(await serverSideTranslations(locale, ['index', 'imprint', 'common'])) ...(await serverSideTranslations(locale, ['index', 'imprint', 'common']))

View File

@ -47,7 +47,7 @@ function Index(): JSX.Element {
) )
} }
export async function getServerSideProps({ locale }) { export async function getStaticProps({ locale }) {
return { return {
props: { props: {
...(await serverSideTranslations(locale, ['common', 'index', 'errors'])), ...(await serverSideTranslations(locale, ['common', 'index', 'errors'])),

View File

@ -166,7 +166,7 @@ function Privacy(): JSX.Element {
) )
} }
export async function getServerSideProps({ locale }) { export async function getStaticProps({ locale }) {
return { return {
props: { props: {
...(await serverSideTranslations(locale, ['index', 'privacy', 'common'])), ...(await serverSideTranslations(locale, ['index', 'privacy', 'common'])),