diff --git a/src/app/[slug]/page.js b/src/app/[slug]/page.js index b548d49..4edd0a7 100644 --- a/src/app/[slug]/page.js +++ b/src/app/[slug]/page.js @@ -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]);