agent-browser/docs/package.json

49 lines
1.2 KiB
JSON
Raw Normal View History

{
"name": "docs",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "portless agent-browser next dev",
"build": "next build",
"start": "next start",
"lint": "eslint"
},
"dependencies": {
2026-02-09 11:16:21 -06:00
"@ai-sdk/react": "^3.0.80",
"@mdx-js/loader": "^3.1.1",
"@mdx-js/mdx": "^3.1.1",
"@mdx-js/react": "^3.1.1",
"@next/mdx": "^16.1.6",
"@streamdown/code": "^1.0.2",
2026-02-09 11:16:21 -06:00
"@upstash/ratelimit": "^2.0.8",
"@upstash/redis": "^1.36.2",
Add Vercel Web Analytics to Next.js (#428) Implemented Vercel Web Analytics for Next.js (App Router) ## Summary Successfully installed and configured @vercel/analytics package for the Next.js documentation site. ## Changes Made ### 1. Installed Dependencies - Installed `@vercel/analytics` package using pnpm - Command executed: `pnpm install @vercel/analytics` ### 2. Modified Files - **docs/src/app/layout.tsx** - Added import: `import { Analytics } from "@vercel/analytics/next";` - Added `<Analytics />` component inside the `<body>` tag, right after `<SpeedInsights />` - Placement follows best practices for App Router projects ### 3. Updated Lock Files - **docs/package.json** - Added @vercel/analytics to dependencies - **docs/pnpm-lock.yaml** - Updated with new dependency tree ## Implementation Details - This is an App Router project (uses `app/` directory structure) - The Analytics component was added to the root layout file at `docs/src/app/layout.tsx` - Followed the same pattern as the existing SpeedInsights component - Preserved all existing code structure and formatting ## Verification โœ… Build completed successfully with no errors โœ… TypeScript compilation passed โœ… Modified file passes ESLint checks โœ… All 15 static pages generated correctly ## Notes - The project already had @vercel/speed-insights installed, so the pattern for adding Analytics was consistent - Pre-existing lint errors in mobile-nav-context.tsx and theme-toggle.tsx are unrelated to this change - Lock files are properly updated and staged as per dependency changes Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2026-02-12 17:41:49 -06:00
"@vercel/analytics": "^1.6.1",
Add Vercel Speed Insights to Next.js (#420) Successfully implemented Vercel Speed Insights for Next.js ## Changes Made ### 1. Installed @vercel/speed-insights package - Used pnpm (the project's package manager) to install @vercel/speed-insights@1.3.1 - Updated package.json with the new dependency - Updated pnpm-lock.yaml with the complete dependency tree ### 2. Integrated SpeedInsights component into root layout - Modified: docs/src/app/layout.tsx - Added import: `import { SpeedInsights } from "@vercel/speed-insights/next"` - Added `<SpeedInsights />` component inside the `<body>` tag, placed after all other content - This follows the recommended pattern for Next.js 13.5+ with App Router ## Implementation Details The project uses: - Next.js 16.1.1 with App Router - TypeScript - pnpm as the package manager The SpeedInsights component was added to the root layout (app/layout.tsx) which is the correct approach for Next.js 13.5+ projects using the App Router. The component is placed at the end of the body tag to ensure it loads after the main content. ## Verification โœ… Build completed successfully - no compilation errors โœ… All changes staged with git including the lockfile โœ… Package installed and integrated correctly Note: Pre-existing linter warnings in mobile-nav-context.tsx and theme-toggle.tsx were not introduced by these changes and remain unchanged. ## Files Modified 1. docs/package.json - Added @vercel/speed-insights dependency 2. docs/pnpm-lock.yaml - Updated with new package dependencies 3. docs/src/app/layout.tsx - Added SpeedInsights import and component The implementation follows Vercel's official documentation and best practices for Next.js App Router applications. Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2026-02-12 17:28:59 -06:00
"@vercel/speed-insights": "^1.3.1",
2026-02-09 11:16:21 -06:00
"ai": "^6.0.78",
"bash-tool": "^1.3.14",
"clsx": "^2.1.1",
2026-02-22 16:09:37 -06:00
"geist": "^1.7.0",
2026-02-09 11:16:21 -06:00
"just-bash": "^2.9.6",
"next": "16.1.1",
2026-02-09 11:16:21 -06:00
"next-themes": "^0.4.6",
"radix-ui": "^1.4.3",
"react": "19.2.3",
"react-dom": "19.2.3",
2026-02-09 11:16:21 -06:00
"shiki": "^3.21.0",
"streamdown": "^2.1.0",
"tailwind-merge": "^3.4.0"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
2026-02-09 11:16:21 -06:00
"@types/mdx": "^2.0.13",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.1.1",
"tailwindcss": "^4",
2026-03-01 09:02:06 -06:00
"tailwindcss-animate": "^1.0.7",
"typescript": "^5"
}
}