TanStackT
TanStack6d ago
1 reply
dry-scarlet

[Docs] TanStack Start ISR on Vercel

I was looking through the ISR documentation https://tanstack.com/start/latest/docs/framework/react/guide/isr

Then I tried to follow the guide
- I defined the cache-control https://tanstack.com/start/latest/docs/framework/react/guide/isr#vercel
- the docs also stated it could be combined with prerendering https://tanstack.com/start/latest/docs/framework/react/guide/isr##5-combine-with-static-prerendering

But after I tried to deploy it on Vercel, it stay static forever (not re-render updated static page after max age duration)

Then I tried disabling the prerender config and just adding cache-control, and it works as expected

Is this expected? On vercel we can only rely on the cache-control header (can't combine it with static prerendering). If it is, I think the docs should be updated to add notes on combining it with prerendering that it won't work on vercel
Incremental Static Regeneration (ISR) allows you to serve statically generated content from a CDN while periodically regenerating it in the background. This gives you the performance benefits of stati...
Incremental Static Regeneration (ISR) | TanStack Start React Docs
Was this page helpful?