Category
Vercel 本番運用ガイド(Fluid Compute・Functions/レンダリングとキャッシュ ISR・CDN・Runtime Cache・Cache Components/デプロイ・Rolling Releases・Instant Rollback/Firewall・WAF・BotID/ストレージ Blob・Edge Config・Marketplace/Active CPU 課金とコスト最適化)
2026年のVercelは『フロントエンド/静的サイトのホスト』ではなく、Express・FastAPI・NestJS・Honoなどのバックエンドもゼロ設定で動かす『フルコンピュート基盤』です。本クラスタは、Vercelを採用した後の『どう本番で作るか』に集中します——既定のFluid Compute(1インスタンスで複数リクエストを並行処理)とそのエラー隔離・コスト効率、そして最大の落とし穴であるグローバル状態の共有(リクエスト固有データを置くと情報漏洩する)、waitUntilの後処理とCRON_SECRETで守るCron、静的/ISR/CDN/Runtime Cacheの4層キャッシュ(stale-while-revalidate・31日永続・300msグローバルpurge・リクエスト併合)とCache Components(PPR)、不変デプロイを土台にしたプレビュー/Promote/Instant Rollback/Rolling Releases(+Skew Protection)とOIDC鍵レスCI/CD、DDoS緩和/WAF(カスタムルール・レート制限)/BotID(見えないCAPTCHA)の入口防御、Blob/Edge Config/Marketplace(Neon・Upstash)のストレージ選定と接続枯渇対策、そしてActive CPU課金(CPU実行時間のみ課金・I/O待ちは非課金)を理解したコスト最適化まで——可観測性・回復性・冪等性・型安全性・セキュリティ・コスト効率を軸に体系化します。このポートフォリオ(Next.js 16)を含む複数のNext.js製プロダクトをVercelで本番運用してきた知見を根拠に、Vercel公式ドキュメントに忠実な実コードで解説します。Next.js(App Router/React 19)そのものの実装は『フロントエンド』クラスタ、Vercel AI SDKでのLLMアプリ実装は『生成AI・LLM・RAG』クラスタを参照してください。
15 articles in total
Foundational guide
Foundational guide (start here)
Vercel production-operation guide: use it not as a front-end-only host but as a 'full-compute platform'
A production-operation guide faithful to the Vercel official documentation. It systematizes — with the correct mental model of latest-2026 and real code — Fluid Compute (the default), Vercel Functions, rendering and caching (ISR/CDN/Runtime Cache), deployment (preview/Promote/Instant Rollback/Rolling Releases), Firewall/WAF/BotID, storage (Blob/Edge Config/Marketplace), and Active CPU billing.
Related practical articles
- VercelFluid ComputePythonTypeScriptサーバーレス
Run a backend on Vercel: operate Express, Hono, FastAPI, and NestJS in production with zero config
Vercel isn't frontend-only; it's a full-compute platform. It explains, per the official docs, how to run Express, Hono, NestJS (Node.js 24) and FastAPI (Python) with zero config. With real code: Node-server detection via server.listen, the fetch Web Handler, the api directory, the caveats of concurrency and global state on Fluid Compute, and coexisting with the frontend (Services).
6 min read - VercelNext.jsパフォーマンスISRキャッシュ
Vercel caching-strategy guide: using the 4 layers of ISR, CDN Cache, Runtime Cache, and Cache Components (PPR)
A caching implementation guide faithful to the Vercel official docs. With real code, it explains the four layers — static cache, ISR (stale-while-revalidate / 31-day persistence / 300ms global purge / request coalescing), CDN Cache (the three headers Cache-Control / CDN-Cache-Control / Vercel-CDN-Cache-Control), Runtime Cache, and Cache Components (PPR) — through on-demand revalidation (revalidatePath/revalidateTag/updateTag) and reading x-vercel-cache.
9 min read - Vercelコスト最適化Fluid Computeサーバーレス可観測性
Vercel cost-optimization guide: understand the Active CPU pricing model and lower your bill
A cost-optimization guide faithful to Vercel's official docs. It explains, with real figures, Fluid Compute's Active CPU billing (billed only for CPU execution time, not I/O wait), the three axes of Provisioned Memory (GB-hr) and Invocations, region-specific unit prices, the official formula, the free tier (Hobby: 4 CPU hours / 360 GB-hr / 1M Invocations), and reduction measures via caching, maxDuration, memory, concurrency, and job separation.
7 min read - VercelCI/CDデプロイNext.js可観測性
Vercel deployment & CI/CD guide: preview, Promote, Instant Rollback, and Rolling Releases at production quality
A deployment-operations guide faithful to Vercel's official docs. It explains, with real commands and code: automatic Git-linked previews, immutable deployments and Production Promote, Instant Rollback, Rolling Releases (staged delivery, canary comparison, Skew Protection, REST API, vcrrForceCanary), --prebuilt CI/CD with GitHub Actions and OIDC keyless, and vercel.ts configuration.
8 min read - VercelセキュリティNext.jsTypeScript型安全
Vercel environment-variable / secret management guide: 3 environments, the NEXT_PUBLIC_ trap, OIDC keyless, and a type-safe boundary
An environment-variable / secret management guide faithful to Vercel's official docs. With real code, it explains the three environments (production/preview/development) and branch-specific overrides, the trap of browser exposure via NEXT_PUBLIC_, the 64KB limit and the Edge 5KB limit, local sync with vercel env pull, system environment variables, external-cloud connection via OIDC keyless, and a type-safe env boundary with Zod.
6 min read - VercelセキュリティWAFDDoSNext.js
Vercel Firewall × WAF × BotID implementation guide: protect the entrance with DDoS mitigation, custom rules, rate limiting, and an invisible CAPTCHA
A platform-layer security implementation guide faithful to Vercel's official docs. With real code, it explains automatic DDoS mitigation, Vercel WAF custom rules (allow/deny/challenge/log/rate limit), IP blocking and managed rule sets, 300ms global propagation and instant rollback, BotID (invisible CAPTCHA, Basic/Deep Analysis) client/server instrumentation, and Attack Challenge Mode.
7 min read - VercelFluid ComputeサーバーレスNext.jsTypeScript
Vercel Functions × Fluid Compute implementation guide: concurrency, streaming, waitUntil, and Cron at production quality
A Functions implementation guide faithful to Vercel's official docs. With real code, it systematizes: Fluid Compute's (default) optimized concurrency and the global-state trap, the Node.js/Python/Bun/Rust runtimes, streaming, post-processing with waitUntil, maxDuration/memory settings, Cron Jobs' CRON_SECRET protection, graceful shutdown, and idempotency.
8 min read - VercelNext.jsパフォーマンスコスト最適化フロントエンド
Vercel image-optimization guide: raise Core Web Vitals with next/image without making the bill spike
An image-optimization guide faithful to Vercel's official docs. With real code, it explains AVIF/WebP conversion and CDN caching via next/image, configuring remotePatterns/localPatterns, the cache key (q/w/url/Accept) and 31-day retention / minimumCacheTTL, the _next/image and _vercel/image URL formats, the mechanism of transformation billing (MISS/STALE), and how to keep costs down by drawing the line on 'which images to optimize / not optimize.'
6 min read - VercelNext.jsセキュリティパフォーマンスTypeScript
Vercel Routing Middleware implementation guide: auth gates, personalization, A/B, and redirects before the cache
A Routing Middleware implementation guide faithful to Vercel's official docs. With middleware that runs globally before request processing and before the cache, implement auth gates, region/device personalization, A/B testing, emergency redirects, and IP blocking. It explains, with real code: choosing the Edge/Node.js/Bun runtime, combining with Edge Config, limits like 14KB URL and 4MB body, and observability.
6 min read - VercelNext.jsインフラアーキテクチャ設計CI/CD
Vercel migration guide: practical steps to switch over from self-hosting (AWS/EC2/Netlify) with zero downtime
A practical guide to migrating a Next.js app from self-hosting (AWS EC2/ECS/Amplify) or Netlify to Vercel with zero downtime. With official-compliant steps, it explains discerning migratability, moving environment variables and secrets, replacing stateful dependencies (DB/files/cron), parallel verification on preview, DNS cutover and rollback, and post-migration cost optimization.
7 min read - Vercel可観測性Next.jsパフォーマンスコスト最適化
Vercel observability guide: trace production with Observability, Speed Insights, Web Analytics, Log Drains, and OTel
An observability guide faithful to Vercel's official docs. It explains Observability (Insights for functions/edge/middleware/external APIs/ISR, etc.), Speed Insights (real-user CWV), Web Analytics (privacy-conscious), Runtime Logs, Log Drains, Monitoring/Notebooks, and OpenTelemetry integration, with @vercel/speed-insights and @vercel/analytics implementations and the 'measure → optimize' workflow.
5 min read - VercelストレージNext.jsTypeScriptコスト最適化
Vercel storage implementation guide: choosing Blob, Edge Config, and Marketplace (Neon/Upstash) correctly by use
A storage-selection and implementation guide faithful to Vercel's official docs. With real code, it explains: Vercel Blob (public/private, @vercel/blob's put/del/list, client/server upload, conditional writes ifMatch, multipart, S3 backend 11 nines), Edge Config (P99 sub-15ms global reads, feature flags/redirects/IP block), and Marketplace (Neon Postgres, Upstash Redis; Vercel Postgres/KV discontinued).
7 min read - VercelNext.js可観測性インフラCI/CD
The complete Vercel troubleshooting compendium: crushing build failures, function errors, 504/413, 404, and cold starts by cause
A practical guide to resolving common Vercel production errors by cause. It explains, with real code and faithful to the official docs: FUNCTION_INVOCATION_TIMEOUT(504), FUNCTION_PAYLOAD_TOO_LARGE(413), FALLBACK_BODY_TOO_LARGE, build failures (output directory/build script/function pattern/config conflict), dynamic-route 404s, environment variables not taking effect, cold starts, and Edge Config connection errors — the causes and fix procedures.
7 min read - Vercelアーキテクチャ設計Next.jsコスト最適化インフラ
Vercel vs Netlify vs Cloudflare vs AWS: a tech-selection guide for Next.js/frontend platforms [2026 · an honest comparison]
An honest comparison of deployment platforms for Next.js / frontend apps — Vercel, Netlify, Cloudflare (Pages/Workers), and AWS (Amplify/DIY). Across DX, the compute model, cost, edge, and lock-in, it explains — from a practitioner's unbiased view — which to choose for which scale and which requirements. A no-hype decision framework.
7 min read