Skip to content

Commit cf1b436

Browse files
committed
Fix articles limit issue
1 parent 17ef11b commit cf1b436

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

app/routes/app.tsx

+8-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ export const loader: LoaderFunction = async ({ request, params }) => {
2424
} else {
2525
const { apiKey } = cookieHeader;
2626

27-
const response = await fetch("https://dev.to/api/articles/me/published", {
28-
headers: {
29-
"api-key": apiKey,
30-
},
31-
});
27+
const response = await fetch(
28+
"https://dev.to/api/articles/me/published?per_page=1000",
29+
{
30+
headers: {
31+
"api-key": apiKey,
32+
},
33+
}
34+
);
3235

3336
const data = await response.json();
3437

0 commit comments

Comments
 (0)