Switch to static props
This commit is contained in:
parent
c9390b6277
commit
9524a479b6
|
@ -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']))
|
||||||
|
|
|
@ -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'])),
|
||||||
|
|
|
@ -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'])),
|
||||||
|
|
Loading…
Reference in New Issue