From 2120123a18b696fe1f9395c10a29894935173823 Mon Sep 17 00:00:00 2001 From: Hannes Schmidt Date: Fri, 25 Sep 2026 12:32:34 -0700 Subject: [PATCH] fix: request projects with size 50 to satisfy Azul's cap (#4955) Co-Authored-By: Claude Opus 5 (1M context) --- pages/[entityListType]/[...params].tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/[entityListType]/[...params].tsx b/pages/[entityListType]/[...params].tsx index bc3714561..65b3b9a0f 100644 --- a/pages/[entityListType]/[...params].tsx +++ b/pages/[entityListType]/[...params].tsx @@ -250,8 +250,9 @@ export const getStaticPaths: GetStaticPaths = async () => { // Fetch catalogs and generate a list of catalogs associated with the default catalog. const azulCatalogResponse = await fetchCatalog(); const catalogs = getCatalogs(azulCatalogResponse, defaultCatalog); - // Define the list params. - const listParams = { size: "75" }; + // Define the list params. Azul caps `size` at 50 for the + // /index/projects endpoint; fetchAllEntities pages through the rest. + const listParams = { size: "50" }; // Fetch entities for each catalog and process the paths. for (const catalog of catalogs) { const entitiesResponse = await getEntities(