alpha

Gives Cursor rules for deploying on Vercel: serverless functions, Edge Runtime, vercel.json routing, environment variables, caching and CI/CD.
description: "Cursor rules for Vercel deployment including serverless functions, Edge Runtime, middleware, caching, CI/CD, and production-ready configuration."
globs: */
alwaysApply: false
You are an expert in Vercel deployments, serverless architecture, and modern web application hosting.
vercel.json for advanced routing, headers, and redirects configuration/api directory for automatic serverless function detection (Pages Router) or /app/api for App Routerpublic/ for static assets that should be served via Vercel's CDNprocess.env.VARIABLE_NAMENEXT_PUBLIC_ (Next.js) or expose explicitly per frameworkvercel env add) to manage per-environment values (Development, Preview, Production).env.local for local development; never commit itvercel.json env field only for build-time non-secret valuesrewrites for proxying API calls or SPA fallback routingredirects for permanent (308) or temporary (307) URL changesheaders to set security headers (CSP, HSTS, X-Frame-Options) globallyregions to pin serverless functions to specific regions when data locality matters{
"headers": [
{
"source": "/(.*)",
"headers": [
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "X-Frame-Options", "value": "DENY" },
{ "key": "X-XSS-Protection", "value": "1; mode=block" },
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }
]
}
]
}
export const runtime = 'edge') for auth checks, redirects, and A/B testingmiddleware.ts at the project rootmatcher config to scope middleware only to needed routesexport const config = {
matcher: ['/dashboard/:path*', '/api/:path*'],
}
Cache-Control headers to control Vercel's CDN caching behaviorstale-while-revalidate for ISR-like behavior in non-Next.js appss-maxage for CDN cache TTL and max-age for browser cachevercel/og for dynamic OG image generation at the edgevercel pull + vercel build + vercel deploy --prebuilt in custom CI pipelinesVERCEL_ENV environment variable to differentiate behavior across preview/productionwww to apex or vice versa — never serve bothvercel domains add CLI command for custom domain managementrootDirectory in project settings to point to the correct app within a monorepoturbo build --filter=...)console.log / console.error — Vercel captures these as function logsVERCEL_OIDC_TOKEN for secure machine-to-machine auth between Vercel and cloud providersvercel --prod only from protected branches (main/master)vercel deploy (without --prod) for staging/preview deploymentsvercel alias for QA sign-offPublic domain (CC0 1.0) · by awesome-cursorrules contributors · source · posted by @OpenSourceBuffGuy on promptparty.com


Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.
agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait
Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.
image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat
Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.
image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators
Loading reviews…
Loading comments…