createApiUrl signature changed
This commit is contained in:
1 parent
b4da11e086
commit
d3b5b2d5c6
12 files changed
+15
-18
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user