Merge branch 'covidpass-org:localization' into localization

This commit is contained in:
Tim 2021-07-03 11:47:41 +02:00 committed by GitHub
commit 0f1b127361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -23,8 +23,8 @@ RUN addgroup -g 1001 -S nodejs
RUN adduser -S nextjs -u 1001
# You only need to copy next.config.js if you are NOT using the default configuration
COPY --from=builder /app/next.config.js ./
COPY --from=builder /app/next-i18next.config.js ./
COPY --from=builder /app/next.config.js ./next.config.js
COPY --from=builder /app/next-i18next.config.js ./next-i18next.config.js
COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules

View File

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

View File

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

View File

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