* Fix typo (#135)

The defaultPageProps object had a typo in the name

Co-authored-by: B <curciobelen@gmail.com>

* changes

* changes

Co-authored-by: JD <jonathan.dawber@icloud.com>
This commit is contained in:
B
2021-01-09 12:36:48 -03:00
committed by GitHub
parent 66b8bdb6bb
commit 8698794c96
4 changed files with 8 additions and 14 deletions

View File

@@ -3,14 +3,14 @@ import type {
GetStaticPropsContext,
InferGetStaticPropsType,
} from 'next'
import { Text } from '@components/ui'
import { Layout } from '@components/common'
import getSlug from '@lib/get-slug'
import { missingLocaleInPages } from '@lib/usage-warns'
import { Layout } from '@components/common'
import { Text } from '@components/ui'
import { getConfig } from '@framework/api'
import getPage from '@framework/api/operations/get-page'
import getAllPages from '@framework/api/operations/get-all-pages'
import { defatultPageProps } from '@lib/defaults'
import { defaultPageProps } from '@lib/defaults'
export async function getStaticProps({
preview,
@@ -34,7 +34,7 @@ export async function getStaticProps({
}
return {
props: { ...defatultPageProps, pages, page },
props: { ...defaultPageProps, pages, page },
revalidate: 60 * 60, // Every hour
}
}