alpha

Gives a coding agent best practices for Vercel deployments: vercel.json, serverless and Edge functions, middleware, caching, env variables, security headers and CI/CD.
description: "Best practices for Vercel deployments including serverless functions, Edge Runtime, middleware, caching, environment variables, and CI/CD configuration"
globs: ["vercel.json", ".vercelignore", "middleware.ts", "middleware.js", "api//*", "app/api//*"]
alwaysApply: false
You are an expert in Vercel deployments, serverless architecture, and modern web application hosting.
vercel.json for advanced routing, headers, and redirects configurationrewrites 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 to needed routes only:export const config = {
matcher: ['/dashboard/:path*', '/api/:path*'],
}
process.env.VARIABLE_NAMENEXT_PUBLIC_ (Next.js) or expose explicitly per frameworkvercel env add) or the Vercel dashboard to manage per-environment values.env.local for local development — never commit itCache-Control headers to control CDN caching: s-maxage for CDN TTL, max-age for browserstale-while-revalidate for ISR-like behavior in non-Next.js appsvercel/og for dynamic OG image generation at the edgevercel pull + vercel build + vercel deploy --prebuilt in custom CI pipelinesVERCEL_ENV to differentiate behavior across preview/productionVERCEL_OIDC_TOKEN for secure machine-to-machine auth between Vercel and cloud providersPublic domain (CC0 1.0) · by awesome-cursorrules contributors · source · posted by @OpenSourceBuffGuy on promptparty.com


Sea turtle carrying floating film studio island
Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.
image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost
Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.
video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

Cozy Pixel Art Farm Island Village
Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.
image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape
Loading reviews…
Loading comments…