Back to Skills

deployment

verified

Next.js deployment - Vercel, Docker, self-hosting strategies

View on GitHub

Marketplace

pluginagentmarketplace-nextjs

pluginagentmarketplace/custom-plugin-nextjs

Plugin

custom-plugin-nextjs

Repository

pluginagentmarketplace/custom-plugin-nextjs
1stars

skills/deployment/SKILL.md

Last Verified

January 20, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/pluginagentmarketplace/custom-plugin-nextjs/blob/main/skills/deployment/SKILL.md -a claude-code --skill deployment

Installation paths:

Claude
.claude/skills/deployment/
Powered by add-skill CLI

Instructions

# Deployment Skill

## Overview

Deploy Next.js applications to various platforms with optimal configurations.

## Capabilities

- **Vercel**: Zero-config deployment
- **Docker**: Containerized deployment
- **Self-Hosting**: Node.js server
- **Static Export**: Static site generation
- **Edge Runtime**: Edge function deployment

## Examples

```dockerfile
# Dockerfile for Next.js
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:18-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
EXPOSE 3000
CMD ["node", "server.js"]
```

```bash
# Vercel deployment
npm i -g vercel
vercel --prod

# Docker deployment
docker build -t nextjs-app .
docker run -p 3000:3000 nextjs-app
```

## next.config.js Options

```js
module.exports = {
  output: 'standalone', // For Docker
  // output: 'export', // For static
}
```

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1001 chars