deploy
Help users deploy their portfolio to production. Covers Vercel, Netlify, Cloudflare Pages, GitHub Pages, Docker, and MCP integration for AI-driven deployment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Help users deploy their portfolio to production. Covers Vercel, Netlify, Cloudflare Pages, GitHub Pages, Docker, and MCP integration for AI-driven deployment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | deploy |
| description | Help users deploy their portfolio to production. Covers Vercel, Netlify, Cloudflare Pages, GitHub Pages, Docker, and MCP integration for AI-driven deployment. |
Help users deploy their portfolio to production.
Ask your AI assistant:
"Deploy my portfolio to Vercel"
The assistant can run CLI commands (vercel, netlify, gh) to deploy for you.
Before deploying, verify:
npm run build succeeds with no errors/public and paths updatedWhy: Zero-config for Next.js, free tier, automatic HTTPS, preview deployments.
Steps:
# Install Vercel CLI
npm i -g vercel
# Deploy (first time - will prompt for setup)
vercel
# Deploy to production
vercel --prod
Or via GitHub:
Custom Domain:
# Add domain in Vercel dashboard, then:
vercel domains add yourdomain.com
Steps:
# Install Netlify CLI
npm i -g netlify-cli
# Build first
npm run build
# Deploy
netlify deploy --prod --dir=.next
Or via GitHub:
npm run build.nextSteps:
npm run build.nextNote: Requires static export, no server features.
Important: You need your own GitHub repository first. If you cloned the Persona template, create your own repo:
# Remove template remote and create your own repo
git remote remove origin
gh repo create my-portfolio --public --source=. --push
Steps:
next.config.ts:const nextConfig = {
output: 'export',
images: { unoptimized: true }
};
npm run build
Dockerfile:
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:20-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
EXPOSE 3000
CMD ["node", "server.js"]
Run:
docker build -t portfolio .
docker run -p 3000:3000 portfolio
If using environment variables:
.env.local-e or use .env fileAfter deploying:
Test the live site
Set up analytics (optional)
Submit to search engines (optional)
npm run build locally first/public folder/images/photo.jpggenerateStaticParams for dynamic routesnext.config.ts for trailingSlash settingnext/image)Pre-configured workflows in .github/workflows/:
Auto-deploy on push to main. Setup:
vercel link locally to get IDsVERCEL_TOKEN (from vercel.com/account/tokens)VERCEL_ORG_IDVERCEL_PROJECT_IDStatic export to GitHub Pages. Setup:
next.config.ts has output: 'export'MCP (Model Context Protocol) enables AI-driven deployment. Supported by Claude Code, Codex, and Gemini CLI.
Setup: Run ./bin/setup.sh and select "Yes" when asked about deployment integration.
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN="your-token" -- npx -y @modelcontextprotocol/server-github
claude mcp add vercel -e VERCEL_API_TOKEN="your-token" -- npx -y vercel-mcp-server
codex mcp add github -- npx -y @modelcontextprotocol/server-github
codex mcp add vercel -- npx -y vercel-mcp-server
Then set environment variables: GITHUB_PERSONAL_ACCESS_TOKEN, VERCEL_API_TOKEN
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "your-token" }
},
"vercel": {
"command": "npx",
"args": ["-y", "vercel-mcp-server"],
"env": { "VERCEL_API_TOKEN": "your-token" }
}
}
}
repo, read:user)Once configured, just ask your AI assistant:
Any AI assistant can deploy using standard CLI tools (no MCP required).
gh CLIFirst, ensure you have your own repo (not the template):
# Check current remote
git remote -v
# If it points to the template repo, remove it and create your own:
git remote remove origin
gh repo create my-portfolio --public --source=. --push
Then enable GitHub Pages:
# Enable GitHub Pages with Actions
gh api repos/{owner}/{repo}/pages -X POST -f build_type=workflow
Requires:
gh CLI installed and authenticated (gh auth login)next.config.ts:
output: 'export',
images: { unoptimized: true }
npm i -g vercel
vercel --prod
npm i -g netlify-cli
netlify deploy --prod