Skip to content

Install Vercel Speed Insights#1

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

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

Conversation

@vercel

@vercel vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

Vercel Speed Insights Installation

Successfully installed and configured Vercel Speed Insights for this Next.js project.

Changes Made

1. Package Installation

  • Installed @vercel/speed-insights v2.0.0 using npm
  • Updated package.json and package-lock.json with the new dependency

2. Integration with Next.js App Router

Modified src/app/layout.tsx:

  • Added import: import { SpeedInsights } from "@vercel/speed-insights/next";
  • Added <SpeedInsights /> component at the end of the <body> element
  • Followed the official Vercel documentation for Next.js App Router integration

Implementation Details

The SpeedInsights component was added to the root layout following Next.js App Router best practices:

  • Placed after the main application content (<ThemeProvider>{children}</ThemeProvider>)
  • Uses the Next.js-specific package export (@vercel/speed-insights/next)
  • No additional configuration required - works out of the box

Verification

✅ Build completed successfully with no errors
✅ Linting passed with no new errors introduced
✅ No tests configured in the project (no test script found)
✅ Lock file properly updated with new dependencies

Next Steps

To enable Speed Insights on Vercel:

  1. Navigate to the Speed Insights section in your Vercel dashboard
  2. Click the "Enable" button for this project
  3. Deploy the application to Vercel
  4. Verify the tracking script appears in the page's head tag after deployment

Speed Insights will automatically start collecting performance metrics once deployed to Vercel.


View Project · Speed Insights

Created by erickr01-2186 with Vercel Agent

# Vercel Speed Insights Installation

Successfully installed and configured Vercel Speed Insights for this Next.js project.

## Changes Made

### 1. Package Installation
- Installed `@vercel/speed-insights` v2.0.0 using npm
- Updated `package.json` and `package-lock.json` with the new dependency

### 2. Integration with Next.js App Router
Modified `src/app/layout.tsx`:
- Added import: `import { SpeedInsights } from "@vercel/speed-insights/next";`
- Added `<SpeedInsights />` component at the end of the `<body>` element
- Followed the official Vercel documentation for Next.js App Router integration

## Implementation Details

The SpeedInsights component was added to the root layout following Next.js App Router best practices:
- Placed after the main application content (`<ThemeProvider>{children}</ThemeProvider>`)
- Uses the Next.js-specific package export (`@vercel/speed-insights/next`)
- No additional configuration required - works out of the box

## Verification

✅ Build completed successfully with no errors
✅ Linting passed with no new errors introduced
✅ No tests configured in the project (no test script found)
✅ Lock file properly updated with new dependencies

## Next Steps

To enable Speed Insights on Vercel:
1. Navigate to the Speed Insights section in your Vercel dashboard
2. Click the "Enable" button for this project
3. Deploy the application to Vercel
4. Verify the tracking script appears in the page's head tag after deployment

Speed Insights will automatically start collecting performance metrics once deployed to Vercel.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown
Author

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

Project Deployment Actions Updated (UTC)
stidy Ready Ready Preview, Comment Jun 15, 2026 1:07pm

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