chore: add Vercel Speed Insights integration#2534
Conversation
There was a problem hiding this comment.
Pull request overview
This PR integrates Vercel Speed Insights into the Docusaurus-based docs site by adding the SDK, injecting it on the client, and registering the module in the Docusaurus configuration.
Changes:
- Add
@vercel/speed-insightsas a dependency. - Introduce a Docusaurus
clientModulesentry that callsinjectSpeedInsights()in the browser. - Register the new client module in
docusaurus.config.ts.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/clientModules/speedInsights.tsx | Adds a client-only module that injects Vercel Speed Insights. |
| docusaurus.config.ts | Registers the Speed Insights client module with Docusaurus. |
| package.json | Adds the @vercel/speed-insights dependency. |
| package-lock.json | Updates lockfile to include the new dependency (and currently includes many unrelated changes). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
📝 WalkthroughWalkthroughVercel Speed Insights integration is added to a Docusaurus site by introducing the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Related Issue or Design Document
Checklist
If this pull request addresses a security vulnerability,
I confirm that I got approval (please contact security@ory.com) from the maintainers to push the changes.
Further comments
Summary by CodeRabbit