From 8a88b59f70a4c513971f4b165b75ef5ecccf4b15 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Mon, 5 Apr 2021 23:33:04 +0300 Subject: [PATCH] base page getStaticProps typing improved --- pages/[...slug].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/[...slug].tsx b/pages/[...slug].tsx index 21488535..9805ef5b 100644 --- a/pages/[...slug].tsx +++ b/pages/[...slug].tsx @@ -160,7 +160,7 @@ const Index: NextPage = props => { ) } -export const getStaticProps: GetStaticProps = async ctx => { +export const getStaticProps: GetStaticProps = async ctx => { const slug = paramsToSlug(ctx.params.slug) const url = `https://hudozka.tmshv.com/pages?slug=${slug}` const page = await apiGet(createPage)(url, null)