createApiUrl signature changed
This commit is contained in:
1 parent
b4da11e086
commit
d3b5b2d5c6
12 files changed
+15
-18
No files matched your search
@@ -37,7 +37,7 @@ const Page = (props) => (
|
||||
Page.getInitialProps = wrapInitialProps(async (ctx) => {
|
||||
const pageUrl = '/'
|
||||
const id = ctx.query.article
|
||||
const article = await requestGet(createApiUrl(ctx.req, `/api/articles/${id}`), {})
|
||||
const article = await requestGet(createApiUrl(`/api/articles/${id}`), {})
|
||||
const image = get(article, 'preview.artifacts.fb', {})
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user