article cleanup + small changes

This commit is contained in:
tmshv committed 2020-02-25 01:19:36 +03:00
1 parent 21a89c7d66
commit 9e5ec860e8
1 file changed
+2 -5
+2 -5
View File
@@ -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<IResponseItems<string>>(createApiUrl(`/api/articles/urls`), null)
if (!urls) {
return null