nextjs-deployment

Solid

Provides comprehensive patterns for deploying Next.js applications to production. Use when configuring Docker containers, setting up GitHub Actions CI/CD pipelines, managing environment variables, implementing preview deployments, or setting up monitoring and logging for Next.js applications. Covers standalone output, multi-stage Docker builds, health checks, OpenTelemetry instrumentation, and production best practices.

DevOps & Infrastructure 278 stars 32 forks Updated 5 days ago MIT

Install

View on GitHub

Quality Score: 91/100

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

Skill Content

# Next.js Deployment Deploy Next.js applications to production with Docker, CI/CD pipelines, and comprehensive monitoring. ## Overview This skill provides patterns and code examples for deploying Next.js applications to production environments. It covers containerization with Docker, CI/CD automation with GitHub Actions, environment configuration, health checks, and production monitoring. Use standalone output mode for container deployments, multi-stage Docker builds for optimized images, and OpenTelemetry for observability. ## When to Use Activate when user requests involve: - "Deploy Next.js", "Dockerize Next.js", "containerize" - "GitHub Actions", "CI/CD pipeline", "automated deployment" - "Environment variables", "runtime config", "NEXT_PUBLIC" - "Preview deployment", "staging environment" - "Monitoring", "OpenTelemetry", "tracing", "logging" - "Health checks", "readiness", "liveness" - "Production build", "standalone output" - "Server Actions encryption key", "NEXT_SERVER_ACTIONS_ENCRYPTION_KEY" ## Quick Reference ### Output Modes | Mode | Use Case | Command | |------|----------|---------| | `standalone` | Docker/container deployment | `output: 'standalone'` | | `export` | Static site (no server) | `output: 'export'` | | (default) | Node.js server deployment | `next start` | ### Environment Variable Types | Prefix | Availability | Use Case | |--------|--------------|----------| | `NEXT_PUBLIC_` | Build-time + Browser | Public API keys, feature flags | | (no pre...

Details

Author
giuseppe-trisciuoglio
Repository
giuseppe-trisciuoglio/developer-kit
Created
7 months ago
Last Updated
5 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category