본문으로 건너뛰기
cccskills
무료GitHub에 공개

vercel

Operate Next.js 16 SaaS on Vercel with Cloudflare DNS + Supabase. Use when deploying to Vercel, reducing build costs, managing secrets, or splitting traffic between Vercel and Cloudflare.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(9)

  • SKILL.md7.2 KB
  • references/API-BUILD-CONTROL.md2.9 KB
  • references/ARCHITECTURE.md6.3 KB
  • references/AUTOMATION-BLUEPRINT.md9.0 KB
  • references/BUILD-CONTROL.md5.6 KB
  • references/CLI-COMMANDS.md6.7 KB
  • references/CLOUDFLARE-OFFLOAD.md7.6 KB
  • references/FOOTGUNS.md7.0 KB
  • references/TOKEN-AND-KEY-MANAGEMENT.md6.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Vercel for SaaS

Core Insight: Optimize three axes: operational control (CLI-first), cost control (avoid accidental builds), correctness (caching + auth without breaking SSR).

Table of Contents


THE EXACT PROMPT

Set up [Next.js app / SaaS] on Vercel with:
1. Cloudflare DNS at: [domain.com]
2. Supabase project: [project-ref]
3. Build control: [manual deploys only / CI-triggered / default]
4. Cost offload: [R2 for assets / Cloudflare Pages for marketing / none]

Follow vercel-for-saas skill patterns.

Architecture Decision

Where should traffic go?
│
├─ Authenticated app (SSR/RSC) ─────► Vercel (app.example.com)
│  • DNS-only in Cloudflare (no proxy)
│  • Manual deploys, prebuilt artifacts
│
├─ Marketing/docs (static) ─────────► Cloudflare Pages (www.example.com)
│  • Direct Upload for deploy control
│  • Aggressive caching, cheap bandwidth
│
└─ Uploads/assets (storage) ────────► Cloudflare R2 (assets.example.com)
   • Worker-signed URLs
   • No egress fees

Why this split: Vercel does NOT recommend reverse-proxying. Hostname splitting gets Cloudflare benefits without breaking Vercel's edge.

Quick Start: Manual Deploy

# 1. Pull settings + env (creates .vercel/)
vercel pull --yes --token $VERCEL_TOKEN

# 2. Build locally (skips Vercel build minutes)
vercel build --prod

# 3. Upload prebuilt artifact
vercel deploy --prebuilt --prod --token $VERCEL_TOKEN

This is the highest-leverage pattern for cost control.

Stop Build Credit Burn

MethodHowEffectiveness
Disable auto-deploysvercel.json: "git": { "deploymentEnabled": false }★★★★★
Prebuilt workflowBuild outside Vercel, upload with --prebuilt★★★★☆
Ignored Build StepExit 0 = skip, Exit 1 = build (commonly reversed!)★★☆☆☆
Deploy HooksHTTP-triggered deploys only★★★☆☆

Config-as-code (recommended):

{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "git": { "deploymentEnabled": false }
}

Details: BUILD-CONTROL.md

Environment Variables

# List
vercel env ls

# Add secret (interactive)
vercel env add SECRET_NAME production

# Pull to local .env
vercel env pull .env.local

# Bulk sync via REST (for agents)
curl -X POST "https://api.vercel.com/v10/projects/$PROJECT/env?upsert=true" \
  -H "Authorization: Bearer $VERCEL_TOKEN" \
  -d '{"key":"VAR","value":"val","target":["production"]}'

For OIDC + Vault: TOKEN-AND-KEY-MANAGEMENT.md

Domain Setup

# Add domain to Vercel
vercel domains add example.com --token $VERCEL_TOKEN

# Then in Cloudflare DNS (DNS-only, not proxied):
# A record → Vercel IP  OR
# CNAME → cname.vercel-dns.com

Workflow Checklist

Phase 1: Initial Setup

  • Install CLIs: vercel, supabase, wrangler, jq
  • Set tokens: VERCEL_TOKEN, CLOUDFLARE_API_TOKEN
  • Link project: vercel link --yes
  • Pull env: vercel pull --yes

Phase 2: Cost Optimization

Phase 3: Secrets & Auth

  • Store secrets via vercel env add or REST API
  • Configure OIDC for cloud credentials — TOKEN-AND-KEY-MANAGEMENT.md
  • Set up Supabase auth integration

Phase 4: Database

  • Create migrations: supabase migration new
  • Apply: supabase migration up (local) / supabase db push (CI)
  • Generate types: supabase gen types typescript

Two-Button Deploy (Agent-Friendly)

# Marketing (Cloudflare Pages)
pnpm -C apps/marketing build
npx wrangler pages deploy apps/marketing/dist --branch=main

# App (Vercel prebuilt)
vercel pull --yes && vercel build --prod && vercel deploy --prebuilt --prod

Critical Gotchas

GotchaFix
Ignored Build Step exits reversed0 = skip, 1 = build (not intuitive)
Ignored builds still count toward quotasUse git.deploymentEnabled: false instead
Cloudflare proxy + Vercel = problemsUse DNS-only for Vercel domains
.vercel/ folder committedAdd to .gitignore
Secrets in config filesUse vercel env or wrangler secret put

Full list: FOOTGUNS.md

Core Commands

TaskCommand
Deploy previewvercel
Deploy prodvercel --prod
Pull settingsvercel pull
Build locallyvercel build
Deploy prebuiltvercel deploy --prebuilt
List env varsvercel env ls
Add env varvercel env add NAME target
Pull env to filevercel env pull

Full CLI reference: CLI-COMMANDS.md


AGENTS.md Blurb

Copy this to your project's AGENTS.md:

### Vercel

Vercel CLI is installed and authenticated.

Project: `<PROJECT_NAME>`

Common commands:

\`\`\`bash
vercel pull --yes         # Fetch settings + env
vercel build --prod       # Build locally (saves build minutes)
vercel deploy --prebuilt --prod  # Deploy prebuilt artifact
vercel env ls             # List env vars
vercel env add SECRET production  # Add secret
\`\`\`

**Cost tip:** Use prebuilt workflow to avoid burning build credits.

References

TopicReference
Architecture & cost modelARCHITECTURE.md
Stopping build burnBUILD-CONTROL.md
API-based build controlAPI-BUILD-CONTROL.md
All CLI commandsCLI-COMMANDS.md
Secrets, env, OIDC, VaultTOKEN-AND-KEY-MANAGEMENT.md
R2 + Pages cost offloadCLOUDFLARE-OFFLOAD.md
Full automation blueprintAUTOMATION-BLUEPRINT.md
Common mistakesFOOTGUNS.md

Token Setup (Non-Interactive Auth)

# Vercel: https://vercel.com/account/tokens
export VERCEL_TOKEN=xxx

# Cloudflare: https://dash.cloudflare.com/profile/api-tokens
export CLOUDFLARE_API_TOKEN=xxx

# Supabase: project settings → API
export SUPABASE_ACCESS_TOKEN=xxx

All CLIs read these automatically. No interactive login needed.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

The philosophy and practical benefits of agent fungibility in multi-agent software development. Why homogeneous, interchangeable agents outperform specialized role-based systems at scale.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations732026년 9월 6일 업데이트

MCP Agent Mail for multi-agent coordination. Use when agents need file locks, messaging, inboxes, or conflict prevention. Handles macro_start_session, file_reservation_paths, send_message, threading, pre-commit guards.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations732026년 9월 6일 업데이트

Jeffrey Emanuel's multi-agent implementation workflow using NTM, Agent Mail, Beads, and BV. The execution phase that follows planning and bead creation. Includes exact prompts used.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations732026년 9월 6일 업데이트

Convert markdown plans into beads with dependencies using br CLI. Use when creating task graphs, polishing beads before implementation, or bridging planning to agent swarm execution.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations732026년 9월 6일 업데이트

bv

무료

Beads Viewer - Graph-aware triage engine for Beads projects. Computes PageRank, betweenness, critical path, and cycles. Use --robot-* flags for AI agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations732026년 9월 6일 업데이트

caam

무료

Manage AI coding CLI accounts with sub-100ms switching. Use when hitting rate limits on Claude Max, GPT Pro, or Gemini Ultra subscriptions and need instant account swapping without browser OAuth.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations732026년 9월 6일 업데이트

Dicklesworthstone의 스킬 모두 보기

이 스킬의 문제 신고