Loading...
Loading...
Edge Deployment automates the deployment of frontend applications to Vercel and Cloudflare with auto-detection of 40+ frameworks, intelligent build configuration, and environment-specific settings.
npx skill4agent add itallstartedwithaidea/agent-skills edge-deploymentgraph TD
A[Project Source] --> B[Detect Framework]
B --> C{Framework Type}
C -->|Next.js/Nuxt/SvelteKit| D[SSR Deployment]
C -->|Astro/Vite/CRA| E[Static Deployment]
D --> F{Target Platform}
E --> F
F -->|Vercel| G[Configure vercel.json]
F -->|Cloudflare| H[Configure wrangler.jsonc]
G --> I[Set Build Command + Output Dir]
H --> I
I --> J[Configure Env Variables]
J --> K[Deploy Preview on PR]
K --> L[Deploy Production on Merge]package.json{
"framework": "nextjs",
"buildCommand": "next build",
"outputDirectory": ".next",
"regions": ["iad1", "sfo1", "lhr1"],
"env": {
"DATABASE_URL": "@database-url",
"API_KEY": "@api-key"
}
}# Deploy to Vercel
npx vercel --prod
# Preview deployment
npx vercel
# Set environment variable
npx vercel env add DATABASE_URL production// wrangler.jsonc
{
"name": "my-app",
"pages_build_output_dir": "./dist",
"compatibility_date": "2026-04-01",
"vars": {
"ENVIRONMENT": "production"
}
}# Deploy to Cloudflare Pages
npx wrangler pages deploy ./dist --project-name=my-app
# Preview deployment
npx wrangler pages deploy ./dist --project-name=my-app --branch=feature-xname: Deploy
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "20" }
- run: npm ci
- run: npm run build
- if: github.event_name == 'push'
run: npx wrangler pages deploy ./dist --project-name=my-app
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}@sveltejs/adapter-cloudflare| Platform | Support | Notes |
|---|---|---|
| Cursor | Full | Shell tool for CLI deploys |
| VS Code | Full | Vercel/CF extensions available |
| Windsurf | Full | Deployment workflow support |
| Claude Code | Full | CLI-based deployments |
| Cline | Full | Terminal integration |
| aider | Partial | Config file generation only |
edge-deploymentvercelcloudflare-pagesci-cdframework-detectionstatic-deploymentssr-deploymentpreview-deployment