Force pagination, by changing recordsPerPage to 1 in the new datocmsCollection function in lib/datocms.ts
Run a local build
Verify all the pages are still generated in dist/[locale]/
Verify all the pages are also still generated in the Cloudflare deploy preview
Checklist
[x] I have performed a self-review of my own code
[x] I have made sure that my PR is easy to review (not too big, includes comments)
I have added/updated tests to prove that my feature works (if not possible please explain why)
I have made changes to the README and if the change affects the project setup (npm commands changed, new service added, environmental variable added) will add this to docs/data-loading.md (see #71)
[x] I have added a decision log entry if the change affects the architecture or changes a significant technology
Changes
datocmsCollection
helper function to fetch all records in a DatoCMS collection.datocmsRequest
with retry on rate limit error.Simplified example (without types):
Associated issue
Resolves #74
How to test
recordsPerPage
to1
in the newdatocmsCollection
function inlib/datocms.ts
dist/[locale]/
Checklist
I have added/updated tests to prove that my feature works (if not possible please explain why)I have made changes to the README and if the change affects the project setup (npm commands changed, new service added, environmental variable added)will add this todocs/data-loading.md
(see #71)