Skip to content

Install Vercel Speed Insights for Next.js#2

Draft
vercel[bot] wants to merge 1 commit intomainfrom
vercel/install-vercel-speed-insights-u5xhl9
Draft

Install Vercel Speed Insights for Next.js#2
vercel[bot] wants to merge 1 commit intomainfrom
vercel/install-vercel-speed-insights-u5xhl9

Conversation

@vercel
Copy link

@vercel vercel bot commented Dec 30, 2025

Vercel Speed Insights Integration for Next.js Dashboard

Successfully installed and configured Vercel Speed Insights for the Inkog Dashboard project.

Changes Made

Installed:

  • @vercel/speed-insights package via npm

Modified:

  • src/app/layout.tsx - Added SpeedInsights component to the root layout
    • Imported SpeedInsights from @vercel/speed-insights/next
    • Added <SpeedInsights /> component inside the body tag, after the Toaster component

Created:

  • .eslintrc.json - Basic ESLint configuration extending next/core-web-vitals to enable linting

Updated:

  • package.json - Added @vercel/speed-insights dependency
  • package-lock.json - Updated lock file with new dependency

Implementation Details

This project uses Next.js 14 with the App Router, so the implementation followed the modern approach:

  1. Imported SpeedInsights from @vercel/speed-insights/next (the recommended import for Next.js 13.5+)
  2. Added the <SpeedInsights /> component directly in the root layout's body tag
  3. Positioned it after the Toaster component for consistency with other providers

The SpeedInsights component requires no additional configuration and will automatically:

  • Collect performance metrics
  • Report them to Vercel's analytics dashboard
  • Only activate when deployed to Vercel

Verification

✓ Build completed successfully (npm run build)
✓ Linter passes (npm run lint) - no errors introduced
✓ No changes to existing functionality
✓ All components and providers preserved in their original order

Notes

  • The project uses npm as its package manager (confirmed by package-lock.json)
  • No migration required as this is a new integration with no conflicting dependencies
  • SpeedInsights is production-safe and only transmits data when deployed to Vercel

View Project · Speed Insights

Created by bandalibenjamin-9880 with Vercel Agent

## Vercel Speed Insights Integration for Next.js Dashboard

Successfully installed and configured Vercel Speed Insights for the Inkog Dashboard project.

### Changes Made

**Installed:**
- `@vercel/speed-insights` package via npm

**Modified:**
- `src/app/layout.tsx` - Added SpeedInsights component to the root layout
  - Imported `SpeedInsights` from `@vercel/speed-insights/next`
  - Added `<SpeedInsights />` component inside the body tag, after the Toaster component
  
**Created:**
- `.eslintrc.json` - Basic ESLint configuration extending `next/core-web-vitals` to enable linting

**Updated:**
- `package.json` - Added `@vercel/speed-insights` dependency
- `package-lock.json` - Updated lock file with new dependency

### Implementation Details

This project uses Next.js 14 with the App Router, so the implementation followed the modern approach:
1. Imported `SpeedInsights` from `@vercel/speed-insights/next` (the recommended import for Next.js 13.5+)
2. Added the `<SpeedInsights />` component directly in the root layout's body tag
3. Positioned it after the Toaster component for consistency with other providers

The SpeedInsights component requires no additional configuration and will automatically:
- Collect performance metrics
- Report them to Vercel's analytics dashboard
- Only activate when deployed to Vercel

### Verification

✓ Build completed successfully (`npm run build`)
✓ Linter passes (`npm run lint`) - no errors introduced
✓ No changes to existing functionality
✓ All components and providers preserved in their original order

### Notes

- The project uses npm as its package manager (confirmed by package-lock.json)
- No migration required as this is a new integration with no conflicting dependencies
- SpeedInsights is production-safe and only transmits data when deployed to Vercel

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

vercel bot commented Dec 30, 2025

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

Project Deployment Review Updated (UTC)
inkog-dashboard Ready Ready Preview, Comment Dec 30, 2025 0:31am

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