We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7260e16 commit 1f95235Copy full SHA for 1f95235
pages/blog/index.js
@@ -48,7 +48,8 @@ export default function Blog({ posts }) {
48
}
49
50
export async function getStaticProps() {
51
- const res = await fetch('https://dev.to/api/articles?username=wdp');
+ const PER_PAGE = 1000
52
+ const res = await fetch(`https://dev.to/api/articles?username=wdp&per_page=${PER_PAGE}`);
53
const posts = await res.json();
54
55
return {
0 commit comments