From 3f8941b613bd0b710f8bcfd95211607931076d0d Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Mon, 24 Feb 2020 00:27:41 +0300 Subject: [PATCH] person page rm debugging code --- pages/teacher/[person].tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pages/teacher/[person].tsx b/pages/teacher/[person].tsx index e2bf19f2..7957556e 100644 --- a/pages/teacher/[person].tsx +++ b/pages/teacher/[person].tsx @@ -47,12 +47,7 @@ const Index: NextPage = props => { } export const unstable_getStaticProps = async (ctx: any) => { - console.log('call unstable_getStaticProps', ctx) - - // const id = ctx.query.person - // const id = ctx.params.person ?? 'va-sarzhin' - const id = ctx.params.person //?? 'mg-timasheva' - + const id = ctx.params.person if (!id) { throw new Error('sry') } @@ -88,10 +83,7 @@ export const unstable_getStaticProps = async (ctx: any) => { } export const unstable_getStaticPaths = async () => { - console.log('call unstable_getStaticPaths') - const urls = await requestGet>(createApiUrl(`/api/persons/urls`), null) - // const urls = {items: ['/teacher/va-sarzhin']} return { paths: urls.items