vercel-performance-tuning

Solid

Optimize Vercel deployment performance with caching, bundle optimization, and cold start reduction. Use when experiencing slow page loads, optimizing Core Web Vitals, or reducing serverless function cold start times. Trigger with phrases like "vercel performance", "optimize vercel", "vercel latency", "vercel caching", "vercel slow", "vercel cold start".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Vercel Performance Tuning ## Overview Optimize Vercel deployment performance across four levers: edge caching, bundle size reduction, serverless function cold start elimination, and Core Web Vitals improvement. Uses real Vercel cache headers, ISR, and Edge Functions for maximum performance. ## Prerequisites - Vercel project deployed with accessible URL - Access to Vercel Analytics (dashboard) - Bundle analyzer available (`@next/bundle-analyzer` or similar) ## Instructions ### Step 1: Establish Performance Baseline ```bash # Check deployment size and function count vercel inspect https://my-app.vercel.app # Run Lighthouse via CLI npx lighthouse https://my-app.vercel.app --output=json --quiet \ | jq '{performance: .categories.performance.score, lcp: .audits["largest-contentful-paint"].numericValue, cls: .audits["cumulative-layout-shift"].numericValue}' # Check bundle size (Next.js) ANALYZE=true npx next build # Opens bundle analyzer report in browser ``` Enable Vercel Analytics in the dashboard under **Analytics** tab for ongoing monitoring. ### Step 2: Configure Edge Caching ```typescript // api/cached-data.ts — cache API responses at the edge import type { VercelRequest, VercelResponse } from '@vercel/node'; export default function handler(req: VercelRequest, res: VercelResponse) { // Cache at Vercel edge for 60s, serve stale for 300s while revalidating res.setHeader('Cache-Control', 's-maxage=60, stale-while-revalidate=300'); res.json({ data: fetchData(), ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

vercel-advanced-troubleshooting

Advanced debugging for hard-to-diagnose Vercel issues including cold starts, edge errors, and function tracing. Use when standard troubleshooting fails, investigating intermittent failures, or preparing evidence for Vercel support escalation. Trigger with phrases like "vercel hard bug", "vercel mystery error", "vercel intermittent failure", "difficult vercel issue", "vercel deep debug".

2,266 Updated today
jeremylongshore
AI & Automation Featured

vercel-deployment

Expert knowledge for deploying to Vercel with Next.js

39,227 Updated today
sickn33
AI & Automation Solid

vercel-edge-functions

Build and deploy Vercel Edge Functions for ultra-low latency at the edge. Use when creating API routes with minimal latency, geolocation-based routing, A/B testing, or authentication at the edge. Trigger with phrases like "vercel edge function", "vercel edge runtime", "deploy edge function", "vercel middleware", "@vercel/edge".

2,266 Updated today
jeremylongshore
Web & Frontend Solid

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

27,681 Updated today
davila7
Web & Frontend Solid

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

244 Updated today
PageAI-Pro