From 1e22a5f4373f5259ad3400fc8e583abdae5a54ab Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 10 Mar 2020 19:16:39 +0300 Subject: [PATCH] document page update --- pages/document/[slug].tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/document/[slug].tsx b/pages/document/[slug].tsx index c6cdaa36..a5e92d12 100644 --- a/pages/document/[slug].tsx +++ b/pages/document/[slug].tsx @@ -35,7 +35,7 @@ const Page: NextPage = props => { ) } -export const unstable_getStaticProps = async (ctx: any) => { +export const getStaticProps = async (ctx: any) => { const id = ctx.params.slug const data = await requestGet(createApiUrl(`/api/files/${id}`), {}) @@ -49,7 +49,7 @@ export const unstable_getStaticProps = async (ctx: any) => { } } -export const unstable_getStaticPaths = async () => { +export const getStaticPaths = async () => { const urls = await requestGet>(createApiUrl(`/api/files/urls`), null) if (!urls) { return null