I use next.js and get paths from builder.getAll(). I have the option to set a query param limit
Max number of results to return. The default is
30
and the maximum is100
.
(Content API - Builder.io)
If I have more than 100 pages, how should I get paths in this case? Because probably I will get a 404 error on subsequent pages after the 100th?
I return fallback: false
from getStaticPaths
const pages = await builder.getAll("page", {
options: { noTargeting: true },
limit: 100,
});
return {
paths: pages.map((page) => `${page.data?.url}`),
fallback: false,
};