From d1c0410d5e39a4447641d1b9412b4c9b88903428 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sun, 29 Mar 2020 02:15:49 +0300 Subject: [PATCH] kke --- pages/[...slug].tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/[...slug].tsx b/pages/[...slug].tsx index e9a89894..0f77f33c 100644 --- a/pages/[...slug].tsx +++ b/pages/[...slug].tsx @@ -160,7 +160,7 @@ export const getStaticProps = async (ctx: any) => { } else { slug = '/' + array(ctx.params.slug).join('/') } - const page = await requestGet(createApiUrl(`/api/page?page=${slug}`), null) + const page = await requestGet(createApiUrl(`/api/page?page=${slug}`), null) if (!page) { throw new Error(`Not found: ${slug}`) } @@ -187,7 +187,7 @@ export const getStaticProps = async (ctx: any) => { } export const getStaticPaths = async () => { - const urls = await requestGet>(createApiUrl(`/api/pages/urls`), null) + const urls = await requestGet | null>(createApiUrl(`/api/pages/urls`), null) if (!urls) { return null }