Install Vercel Speed Insights - #25
Draft
vercel[bot] wants to merge 1 commit into
Draft
Conversation
## Vercel Speed Insights Installation Successfully installed and configured Vercel Speed Insights for this Next.js project following the official documentation from https://vercel.com/docs/speed-insights/quickstart. ### Changes Made **1. Installed Package:** - Added `@vercel/speed-insights@^2.0.0` to dependencies - Package installed using npm and saved to package.json **2. Modified Files:** - `src/app/layout.tsx` - Added SpeedInsights component to root layout - Imported `SpeedInsights` from `@vercel/speed-insights/next` - Added component at the end of the body tag (before closing `</body>`) - Maintains existing code structure and formatting **3. Updated Lock Files:** - `package-lock.json` - Updated with new dependency ### Framework-Specific Implementation This project uses Next.js 16.2.7 with App Router. Following the official documentation: - Used the `/next` export from `@vercel/speed-insights` package - Added the `<SpeedInsights />` component to the root layout at `src/app/layout.tsx` - Component placed inside the `<body>` tag after the `{children}` content ### Verification ✅ Build completed successfully (`npm run build`) ✅ Linter passed with no new errors or warnings (`npm run lint`) ✅ TypeScript compilation successful ✅ All existing functionality preserved ### Next Steps To enable Speed Insights in production: 1. Deploy the application to Vercel 2. Navigate to the Speed Insights tab in the Vercel dashboard 3. Click "Enable" to activate the Speed Insights routes 4. After users visit the site, metrics will appear in the dashboard The Speed Insights component will automatically track Core Web Vitals and send data to Vercel once enabled in the dashboard. Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Author
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Vercel Speed Insights Installation
Successfully installed and configured Vercel Speed Insights for this Next.js project following the official documentation from https://vercel.com/docs/speed-insights/quickstart.
Changes Made
1. Installed Package:
@vercel/speed-insights@^2.0.0to dependencies2. Modified Files:
src/app/layout.tsx- Added SpeedInsights component to root layoutSpeedInsightsfrom@vercel/speed-insights/next</body>)3. Updated Lock Files:
package-lock.json- Updated with new dependencyFramework-Specific Implementation
This project uses Next.js 16.2.7 with App Router. Following the official documentation:
/nextexport from@vercel/speed-insightspackage<SpeedInsights />component to the root layout atsrc/app/layout.tsx<body>tag after the{children}contentVerification
✅ Build completed successfully (
npm run build)✅ Linter passed with no new errors or warnings (
npm run lint)✅ TypeScript compilation successful
✅ All existing functionality preserved
Next Steps
To enable Speed Insights in production:
The Speed Insights component will automatically track Core Web Vitals and send data to Vercel once enabled in the dashboard.
View Project · Speed Insights
Created by Kavisha Liyanage (kldev) with Vercel Agent