From a10ea32af3295617ac77371f994c490d3aaf5b29 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Fri, 2 Aug 2019 18:31:14 +0300 Subject: [PATCH] home page url hardcoded --- pages/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index.jsx b/pages/index.jsx index 6de5c992..a19d7d17 100644 --- a/pages/index.jsx +++ b/pages/index.jsx @@ -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}`