Skip to content

Commit 6b13545

Browse files
committed
add lastDeployDate to page props
1 parent 27a13ae commit 6b13545

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/pages/404.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { serverSideTranslations } from "next-i18next/serverSideTranslations"
55
import { Box, Flex, Heading, Text } from "@chakra-ui/react"
66

77
import { getRequiredNamespacesForPath } from "@/lib/utils/translations"
8+
import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
89

910
import InlineLink from "../components/Link"
1011
import Translation from "../components/Translation"
@@ -16,13 +17,17 @@ export const getStaticProps = (async (context) => {
1617

1718
// load i18n required namespaces for the given page
1819
const requiredNamespaces = getRequiredNamespacesForPath("/")
20+
const lastDeployDate = getLastDeployDate()
1921

2022
return {
21-
props: await serverSideTranslations(locale!, requiredNamespaces),
23+
props: {
24+
...(await serverSideTranslations(locale!, requiredNamespaces)),
25+
lastDeployDate,
26+
},
2227
}
2328
}) satisfies GetStaticProps<Props>
2429

25-
const NotFoundPage: NextPage<Props> = () => (
30+
const NotFoundPage = () => (
2631
<Flex flexDir="column" align="center" w="full" mt={16} mb={0} mx="auto">
2732
<Box py={4} px={8} w="full">
2833
<Heading as="h1" size="2xl" my={8}>

0 commit comments

Comments
 (0)