What problem does it solve? Moving a NestJS application from local development to production involves many failure points: bloated Docker images, webpack bundling errors with native packages, unsafe database migrations, and missing security controls. This Skill provides proven patterns for the entire deployment path. ## Core Features & Use Cases - Multi-Stage Docker Builds: Three-stage Dockerfiles (builder, deps, runtime) that shrink images from 1.2GB to ~200MB with non-root users and health checks. - Webpack Externals Configuration: Fix runtime crashes caused by packages like @prisma/client, bcrypt, or ESM-only SDKs that break when bundled. - Database Migration Strategy: Run prisma migrate deploy on container startup so schema changes apply safely before the app accepts traffic. - Production Hardening: Configure CORS restrictions, rate limiting with @nestjs/throttler, ValidationPipe, environment-driven logging, and memory limits. - Use Case: You have an Nx monorepo NestJS API ready to ship. Use this Skill to generate the production Dockerfile, configure webpack externals for Prisma, and harden main.ts before deploying to DigitalOcean, AWS, or Railway. ## Quick Start Ask the AI to create a production-ready multi-stage Dockerfile and hardened main.ts bootstrap for your NestJS application.