Skip to content

fix(nextjs): use LRU map instead of map for ISR route cache#18234

Merged
logaretm merged 1 commit intodevelopfrom
awad/js-1152-use-lru-map-instead-of-map
Nov 17, 2025
Merged

fix(nextjs): use LRU map instead of map for ISR route cache#18234
logaretm merged 1 commit intodevelopfrom
awad/js-1152-use-lru-map-instead-of-map

Conversation

@logaretm
Copy link
Member

Make use of our existing LRUMap for the ISR route cache to avoid the map growing too big.

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.62 kB - -
@sentry/browser - with treeshaking flags 23.13 kB - -
@sentry/browser (incl. Tracing) 41.28 kB - -
@sentry/browser (incl. Tracing, Profiling) 45.61 kB - -
@sentry/browser (incl. Tracing, Replay) 79.73 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.44 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 84.43 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 96.64 kB - -
@sentry/browser (incl. Feedback) 41.29 kB - -
@sentry/browser (incl. sendFeedback) 29.29 kB - -
@sentry/browser (incl. FeedbackAsync) 34.21 kB - -
@sentry/react 26.32 kB - -
@sentry/react (incl. Tracing) 43.22 kB - -
@sentry/vue 29.11 kB - -
@sentry/vue (incl. Tracing) 43.08 kB - -
@sentry/svelte 24.64 kB - -
CDN Bundle 26.94 kB - -
CDN Bundle (incl. Tracing) 41.83 kB - -
CDN Bundle (incl. Tracing, Replay) 78.38 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 83.85 kB - -
CDN Bundle - uncompressed 78.92 kB - -
CDN Bundle (incl. Tracing) - uncompressed 124.07 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 240.1 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 252.87 kB - -
@sentry/nextjs (client) 45.64 kB +0.31% +141 B 🔺
@sentry/sveltekit (client) 41.67 kB - -
@sentry/node-core 50.91 kB - -
@sentry/node 159.09 kB - -
@sentry/node - without tracing 92.78 kB - -
@sentry/aws-serverless 106.53 kB - -

View base workflow run

@logaretm logaretm merged commit 60a198e into develop Nov 17, 2025
62 checks passed
@logaretm logaretm deleted the awad/js-1152-use-lru-map-instead-of-map branch November 17, 2025 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants