惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
博客园 - 【当耐特】
M
MIT News - Artificial intelligence
D
Docker
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
月光博客
月光博客
S
SegmentFault 最新的问题
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
L
LangChain Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI

Workflow SDK Documentation

Patterns for Defining Tools Human-in-the-Loop Building Durable AI Agents Queueing User Messages Resumable Streams Sleep, Suspense, and Scheduling Streaming Updates from Tools API Reference Workflow Globals Changelog Resilient run start Cookbook Building a World Astro Express Fastify Hono Getting Started NestJS Next.js Nitro Nuxt Python SvelteKit Vite corrupted-event-log fetch-in-workflow hook-conflict Errors node-js-module-in-workflow
Deploying
2026-05-31 · via Workflow SDK Documentation

Deploy workflows locally, on Vercel, or anywhere using pluggable World adapters.

Workflows are designed to be highly portable. The same workflow code can run locally during development, on Vercel with zero configuration, or on any infrastructure using Worlds — pluggable adapters that handle storage, queuing, and communication.

During local development, workflows automatically use the Local World — no configuration required. The Local World stores workflow data in a .workflow-data/ directory and processes steps synchronously, making it perfect for development and testing.

# Just run your dev server - workflows work out of the box
npm run dev

You can inspect local workflow data using the CLI:

npx workflow inspect runs

Learn more about the Local World configuration and internals.

The easiest way to deploy workflows to production is on Vercel. When you deploy to Vercel, workflows automatically use the Vercel World — again, with zero configuration.

The Vercel World provides:

  • Durable storage - Workflow state persists across function invocations
  • Managed queuing - Steps are processed reliably with automatic retries
  • Automatic scaling - Workflows scale with your application
  • Built-in observability - View workflow runs in the Vercel dashboard

Simply deploy your application:

Enable Fluid compute before deploying. Workflow is designed to take advantage of Fluid compute for efficient suspension and resumption. Without Fluid compute enabled, each workflow resume incurs a separate function cold start, which can result in significantly higher costs.

For self-hosting or deploying to other cloud providers, you can use community-maintained Worlds or build your own.

Using a Third-Party World

To use a different World implementation, set the WORKFLOW_TARGET_WORLD environment variable:

export WORKFLOW_TARGET_WORLD=@workflow/world-postgres
# Plus any world-specific configuration
export DATABASE_URL=postgres://...

Each World may have its own configuration requirements — refer to the specific World's documentation for details.

The Observability tools work with any World backend. By default they connect to your local environment, but can be configured to inspect remote deployments:

# Inspect local workflows
npx workflow inspect runs

# Inspect remote workflows
npx workflow inspect runs --backend @workflow/world-postgres

Learn more about Observability tools.