From 9e5ec860e8ddc58d0d68fcaaf78542553814b025 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 25 Feb 2020 01:19:36 +0300 Subject: [PATCH] article cleanup + small changes --- pages/article/[slug].tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pages/article/[slug].tsx b/pages/article/[slug].tsx index e670d2df..8e8ded5a 100644 --- a/pages/article/[slug].tsx +++ b/pages/article/[slug].tsx @@ -1,17 +1,16 @@ import Head from 'next/head' -import { get } from 'lodash' import { App } from 'src/components/App' import { Article } from 'src/components/Article' import { Html } from 'src/components/Html' import { Meta } from 'src/components/Meta' -import { meta, MetaBuilder } from 'src/lib/meta' +import { MetaBuilder } from 'src/lib/meta' import { createApiUrl, requestGet, IResponseItems } from 'src/next-lib' import { NextPage } from 'next' import { IArticle } from 'src/types' type Props = { title: string - meta: any + meta: IMeta data: IArticle } @@ -65,8 +64,6 @@ export const unstable_getStaticProps = async (ctx: any) => { } export const unstable_getStaticPaths = async () => { - console.log('call article unstable_getStaticPaths') - const urls = await requestGet>(createApiUrl(`/api/articles/urls`), null) if (!urls) { return null