pages worked as static

This commit is contained in:
tmshv committed 2020-02-15 06:26:28 +03:00
1 parent b9c2929bc3
commit ca58994301
12 files changed
+414 -258

No files matched your search

-1
View File
@@ -50,7 +50,6 @@ export const unstable_getStaticProps = async (ctx: any) => {
const id = ctx.params.slug
const data = await requestGet(createApiUrl(`/api/albums/${id}`), null)
console.log('call album unstable_getStaticProps', data)
if (!data) {
throw new Error(`kek ${id}`)
}