base page getStaticProps typing improved
This commit is contained in:
1 parent
cd2800c79d
commit
8a88b59f70
1 file changed
+1
-1
+1
-1
@@ -160,7 +160,7 @@ const Index: NextPage<Props> = props => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getStaticProps: GetStaticProps<any> = async ctx => {
|
export const getStaticProps: GetStaticProps<Props> = async ctx => {
|
||||||
const slug = paramsToSlug(ctx.params.slug)
|
const slug = paramsToSlug(ctx.params.slug)
|
||||||
const url = `https://hudozka.tmshv.com/pages?slug=${slug}`
|
const url = `https://hudozka.tmshv.com/pages?slug=${slug}`
|
||||||
const page = await apiGet(createPage)(url, null)
|
const page = await apiGet(createPage)(url, null)
|
||||||
|
|||||||
Reference in new issue
Block a user