You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Updates
Vercel Speed Insights now runs with a 10% sample rate and is excluded from island-rendered content. This changes how the feature is configured across the app; no other end-user-facing changes are noted.
Speed Insights is now injected by a client-side Nuxt plugin with a sample rate of 0.1. The Nuxt modules list no longer includes @vercel/speed-insights.
Changes: Speed Insights integration
Layer / File(s)
Summary
Register Speed Insights in a client plugin nuxt.config.ts, app/plugins/vercel-speed-insights.client.ts
The Nuxt modules list no longer includes @vercel/speed-insights. A client-side plugin calls injectSpeedInsights with sampleRate: 0.1 and sets env.islands to false.
Suggested reviewers:trueberryless
Merge Risk: Minimal Β· up to caea4
This change reduces Speed Insights event sampling to 10% by registering it through a client plugin. No actionable merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title states the main change: Speed Insights events are now sampled at 10%. It is specific and matches the summary, which describes a sample rate of 0.1 in the new plugin and removal of the Vercelβ¦
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description states that the change reduces Speed Insights sampling to 10% to lower the bill. It also links an upstream pull request that would make the sampling rate configurable without a custom β¦
Full details: Title check
Explanation
The title states the main change: Speed Insights events are now sampled at 10%. It is specific and matches the summary, which describes a sample rate of 0.1 in the new plugin and removal of the Vercel module from nuxt.config.ts. The "perf:" prefix is a conventional commit type and does not affect the assessment.
Full details: Description check
Explanation
The description states that the change reduces Speed Insights sampling to 10% to lower the bill. It also links an upstream pull request that would make the sampling rate configurable without a custom plugin. This matches the changeset, which adds a Nuxt plugin with a 0.1 sample rate and removes the @vercel/speed-insights module from nuxt.config.ts. The linked issue section is an unfilled template placeholder, but the check only requires that the description relates to the changeset.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix Β· Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between abf8e59 and caea497.
Files selected for processing: 2
app/plugins/vercel-speed-insights.client.ts
nuxt.config.ts
Files with no reviewable changes: 1
nuxt.config.ts
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
π Linked issue
π Description
this reduces our speed insights sampling to 10% which should reduce our bill accordingly
opened vercel/speed-insights#126 upstream to make it easier to set this without a custom plugin