Next.js ISR on Cloudflare via OpenNext
This application benchmarks Incremental Static Regeneration (ISR) performance for Next.js applications deployed to Cloudflare Workers using OpenNext.
⚡ OpenNext Configuration
- Incremental Cache: Workers KV (ultra-fast global distribution)
- Tag Cache: Sharded Durable Objects (high-load on-demand revalidation)
- Queue: Durable Objects (reliable ISR processing)
- Cache Interception: Enabled (reduced cold starts)
- Auto Cache Purge: Direct mode (immediate invalidation)
🧪 Demo Route: /demo/[slug]
Revalidation: Every 10 seconds
Pre-fetched Routes:
/demo/1
/demo/2
/demo/3
/demo/foo
/demo/bar
/demo/baz
Dynamic Routes: Generated on first request (try
/demo/test
)🚀 Test ISR Performance
Visit the demo routes to see ISR in action. Each page shows timestamps, random values, and access counts that update every 10 seconds via ISR.
Dynamic Routes (Generated on First Request)
📊 What to Observe:
- • First load: Pre-generated routes should load instantly
- • Dynamic routes: May have slight delay on first request (cache miss)
- • Subsequent visits: All routes should be cached and load quickly
- • Revalidation: Data updates every 10 seconds while maintaining cache performance