What problem does it solve?
This Skill prevents common and costly errors during the deployment of Next.js applications to Vercel, especially when using Supabase, by enforcing best practices for environment variables, build configurations, and database migrations.
Core Features & Use Cases
- Environment Variable Scoping: Ensures correct environment variables are used for production, preview, and development.
- Build Optimization: Configures
next.config.js for production readiness with security headers and optimized output.
- Deployment Checklist: Guides through crucial steps like preview deployments for every PR and database migrations before code deployment.
- Use Case: Deploying a Next.js e-commerce site to Vercel. This skill ensures that production Stripe keys are not exposed in preview environments, database schema changes are applied before the new code is released, and a health check endpoint is configured for Vercel monitoring.
Quick Start
Use the deploying-to-production skill to ensure all environment variables are correctly configured for a Vercel deployment.