File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { serverSideTranslations } from "next-i18next/serverSideTranslations"
5
5
import { Box , Flex , Heading , Text } from "@chakra-ui/react"
6
6
7
7
import { getRequiredNamespacesForPath } from "@/lib/utils/translations"
8
+ import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
8
9
9
10
import InlineLink from "../components/Link"
10
11
import Translation from "../components/Translation"
@@ -16,13 +17,17 @@ export const getStaticProps = (async (context) => {
16
17
17
18
// load i18n required namespaces for the given page
18
19
const requiredNamespaces = getRequiredNamespacesForPath ( "/" )
20
+ const lastDeployDate = getLastDeployDate ( )
19
21
20
22
return {
21
- props : await serverSideTranslations ( locale ! , requiredNamespaces ) ,
23
+ props : {
24
+ ...( await serverSideTranslations ( locale ! , requiredNamespaces ) ) ,
25
+ lastDeployDate,
26
+ } ,
22
27
}
23
28
} ) satisfies GetStaticProps < Props >
24
29
25
- const NotFoundPage : NextPage < Props > = ( ) => (
30
+ const NotFoundPage = ( ) => (
26
31
< Flex flexDir = "column" align = "center" w = "full" mt = { 16 } mb = { 0 } mx = "auto" >
27
32
< Box py = { 4 } px = { 8 } w = "full" >
28
33
< Heading as = "h1" size = "2xl" my = { 8 } >
You can’t perform that action at this time.
0 commit comments