I have a critical issue with ISR

I am using Next.js 15 and React 19. To implement ISR, I used the following code: export const dynamic = "force-static"; and export const revalidate = 5184000;. When the ISR writes exceeded 8 million, I commented out export const dynamic = "force-static"; and redeployed my project. However, this caused all previously generated ISR pages to disappear, meaning I paid for writes unnecessarily. How can I resolve this issue? I only want to use the free 2 million writes per month. My total pages exceed 50 million. What can I do to handle this situation? I urgently need help.

Hi, @hakansungur!

Thanks for your patience with us.

There are ways you can optimise your Next.js 15 project and manage ISR writes. You could implement ISR selectively for high-priority pages, increase revalidation periods for less frequently updated content (e.g., export const revalidate = 2592000; for 30 days), use on-demand revalidation for urgent updates, combine static generation with ISR based on update frequency.

The key is to balance content freshness with ISR write management to stay within your 2 million free writes per month while handling your 50 million pages effectively.

Hope that helps!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.