Skip to content

Install Vercel Speed Insights - #25

Draft
vercel[bot] wants to merge 1 commit into
mainfrom
vercel/install-vercel-speed-insights-9ulrrp
Draft

Install Vercel Speed Insights#25
vercel[bot] wants to merge 1 commit into
mainfrom
vercel/install-vercel-speed-insights-9ulrrp

Conversation

@vercel

@vercel vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

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.


View Project · Speed Insights

Created by Kavisha Liyanage (kldev) with Vercel Agent

## 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>
@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown
Author

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vero-salon-website Ready Ready Preview Aug 8, 2026 7:32pm

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.

0 participants