Skip to content

Commit

Permalink
increase page size for strapi news fetches (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
razumau committed Aug 20, 2022
1 parent f5be34a commit 3473f91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/_data/news.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ require("dotenv").config();
const { default: axios } = require("axios");

const apiUrl = process.env.API_URL;
const apiPageSize = 500;

module.exports = async () => {
try {
const res = await axios.get(`${apiUrl}/news-items`);
const res = await axios.get(`${apiUrl}/news-items?_limit=${apiPageSize}`);
return res.data;
} catch (error) {
console.error(error);
Expand Down

1 comment on commit 3473f91

@vercel
Copy link

@vercel vercel bot commented on 3473f91 Aug 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.