Skip to content

Install and configure Vercel Speed Insights - #3

Merged
xendke merged 1 commit into
mainfrom
vercel/install-and-configure-vercel-s-qdhbvr
May 25, 2026
Merged

xendke merged 1 commit into
mainfrom
vercel/install-and-configure-vercel-s-qdhbvr

Conversation

@vercel

@vercel vercel Bot commented May 25, 2026

Copy link
Copy Markdown
Contributor

Vercel Speed Insights Installation

Successfully installed and configured Vercel Speed Insights for the Forest web application.

Changes Made

1. Package Installation

  • Installed @vercel/speed-insights@^2.0.0 package using npm
  • Updated apps/web/package.json with the new dependency
  • Updated package-lock.json with the dependency tree

2. Component Integration

Modified apps/web/app/layout.tsx:

  • Added import statement: import { SpeedInsights } from "@vercel/speed-insights/next"
  • Added <SpeedInsights /> component to the root layout, placed alongside the existing <Analytics /> component inside the <body> tag

Implementation Details

This Next.js 14 project uses the App Router, so I followed the official Vercel documentation instructions for App Router (v13.5+). The SpeedInsights component was added to the root layout file to ensure it's included on all pages of the application.

The component is placed at the end of the body tag, following the same pattern as the existing Analytics component. This ensures proper tracking across all routes without affecting the application's performance or user experience.

Verification

✅ Build completed successfully - all pages generated without errors
✅ All tests passed (31 tests in QuizModal.test.tsx)
✅ No TypeScript or linting errors introduced
✅ Lockfile properly updated with new dependencies

Next Steps

To complete the setup:

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

The Speed Insights component is now ready and will automatically begin collecting performance metrics once enabled in the Vercel dashboard.


View Project · Speed Insights

Created by Juan (xendke) with Vercel Agent

# Vercel Speed Insights Installation

Successfully installed and configured Vercel Speed Insights for the Forest web application.

## Changes Made

### 1. Package Installation
- Installed `@vercel/speed-insights@^2.0.0` package using npm
- Updated `apps/web/package.json` with the new dependency
- Updated `package-lock.json` with the dependency tree

### 2. Component Integration
Modified `apps/web/app/layout.tsx`:
- Added import statement: `import { SpeedInsights } from "@vercel/speed-insights/next"`
- Added `<SpeedInsights />` component to the root layout, placed alongside the existing `<Analytics />` component inside the `<body>` tag

## Implementation Details

This Next.js 14 project uses the App Router, so I followed the official Vercel documentation instructions for App Router (v13.5+). The SpeedInsights component was added to the root layout file to ensure it's included on all pages of the application.

The component is placed at the end of the body tag, following the same pattern as the existing Analytics component. This ensures proper tracking across all routes without affecting the application's performance or user experience.

## Verification

✅ Build completed successfully - all pages generated without errors
✅ All tests passed (31 tests in QuizModal.test.tsx)
✅ No TypeScript or linting errors introduced
✅ Lockfile properly updated with new dependencies

## Next Steps

To complete the setup:
1. Deploy the application to Vercel
2. Navigate to the Speed Insights section in your Vercel project dashboard
3. Click the "Enable" button to activate Speed Insights
4. Verify the tracking script appears in your page after deployment

The Speed Insights component is now ready and will automatically begin collecting performance metrics once enabled in the Vercel dashboard.

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

vercel Bot commented May 25, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Project Deployment Actions Updated (UTC)
forest-web Ready Ready Preview, Comment May 25, 2026 12:46am

@xendke
xendke marked this pull request as ready for review May 25, 2026 00:47
@xendke
xendke merged commit 287d97d into main May 25, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 461158ef Deployed May 25, 2026 by vercel[bot]
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.

1 participant