lov-deploy-to-vercel

Featured

Deploy frontend projects to Vercel with automatic custom domain setup. Handles Vite, Next.js, CRA, and static sites. Auto-configures Cloudflare DNS CNAME records and Vercel domain aliases. Supports SPA routing via vercel.json. Trigger when user says "deploy to vercel", "部署到 vercel", "vercel deploy", or mentions a *.example.com / custom domain with vercel deployment.

Data & Documents 64 stars 16 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

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

Skill Content

# deploy-vercel — One-Command Frontend Deployment Deploy frontend projects to Vercel with automatic custom domain and DNS setup. ## When to Use - User says "deploy to vercel" or "部署到 xxx.example.com" - After building a frontend project that needs hosting - When setting up a custom domain on an existing Vercel deployment ## Arguments Pass via `$ARGUMENTS`: | Argument | Example | Description | |----------|---------|-------------| | `<domain>` | `sbti.example.com` | Custom domain to configure | | `--preview` | | Deploy preview only (skip `--prod`) | | `--no-dns` | | Skip Cloudflare DNS auto-config | | `--link-only` | | Only link project, don't deploy | ## Workflow ### Step 1: Detect Project Type ```bash if [ -f "vite.config.ts" ] || [ -f "vite.config.js" ]; then FRAMEWORK="vite" elif [ -f "next.config.js" ] || [ -f "next.config.mjs" ]; then FRAMEWORK="next" elif grep -q "react-scripts" package.json 2>/dev/null; then FRAMEWORK="cra" else FRAMEWORK="static" fi ``` ### Step 2: Ensure vercel.json for SPA For Vite/CRA (SPA) projects, create `vercel.json` if missing: ```json { "rewrites": [ { "source": "/(.*)", "destination": "/" } ] } ``` **Skip for Next.js** — it handles routing natively. ### Step 3: Deploy to Vercel Before running a production deployment, use `AskUserQuestion` if the target project, production/non-production mode, or custom domain is unclear. If the user already explicitly requested production deployment for this project, proceed. ``...

Details

Author
lovstudio
Repository
lovstudio/skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category