home page url hardcoded

This commit is contained in:
tmshv committed 2019-08-02 18:31:14 +03:00
1 parent aed6c1aac7
commit a10ea32af3
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ const Page = (props) => (
)
Page.getInitialProps = async (ctx) => {
const pageUrl = ctx.req.url
const pageUrl = '/'
const page = 1
const pageSize = ctx.query.pageSize
const apiUrl = `http://localhost:3000/api/articles?page=${page}&pageSize=${pageSize}`