createApiUrl signature changed

This commit is contained in:
tmshv committed 2020-02-15 04:04:26 +03:00
1 parent b4da11e086
commit d3b5b2d5c6
12 files changed
+15 -18

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ const Index = props => (
Index.getInitialProps = wrapInitialProps(async (ctx) => {
const pageUrl = ctx.req.url
const page = await requestGet(createApiUrl(ctx.req, `/api/page?page=${pageUrl}`), {})
const page = await requestGet(createApiUrl(`/api/page?page=${pageUrl}`), {})
const image = page.preview ? page.preview.artifacts.fb : {}
return {