Skip to content

Commit

Permalink
opx
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ authored Mar 21, 2024
1 parent 85c4476 commit 4002510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/[slug]/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function ArticlesPage({ params }) {
setIsLoading(true);
try {
const response = await fetch(
`https://dev.to/api/articles?username=${params.slug}&per_page=100&page=${page}`,{ cache: 'no-store' }
`https://dev.to/api/articles/latest/?username=${params.slug}&per_page=110&page=${page}`,{ cache: 'no-store' }
);
const data = await response.json();
setArticles((prevArticles) => [...prevArticles, ...data]);
Expand Down

0 comments on commit 4002510

Please sign in to comment.