

























The Local World is bundled with workflow and used automatically during local development. No installation or configuration required.
To explicitly use the local world in any environment, set the environment variable:
WORKFLOW_TARGET_WORLD=localThe workflow CLI uses the local world by default. Running these commands inside your workflow project will show your local development workflows:
# List recent workflow runs
npx workflow inspect runs
# Launch the web UI
npx workflow webLearn more in the Observability documentation.
Passing100% passing
Spec compliance is tested against Next.js (Turbopack) built in production mode and started with `next start`. View CI run →
Last updated: 6/14/2026, 11:48:35 AM · Commit: 0178fa5
The local world works with zero configuration, but you can customize behavior through environment variables or programmatically via createLocalWorld().
WORKFLOW_LOCAL_DATA_DIRDirectory for storing workflow data as JSON files. Default: .workflow-data/
PORTThe application dev server port. Used to enqueue steps and workflows. Default: auto-detected
WORKFLOW_LOCAL_BASE_URLFull base URL override for HTTPS or custom hostnames. Default: http://localhost:{port}
Port resolution priority: baseUrl > port > PORT > auto-detected
WORKFLOW_LOCAL_QUEUE_CONCURRENCYMaximum number of concurrent queue workers. Default: 100
import { createLocalWorld } from "@workflow/world-local";
const world = createLocalWorld({
dataDir: "./custom-workflow-data",
port: 5173,
// baseUrl overrides port if set
baseUrl: "https://local.example.com:3000",
});The local world is designed for development, not production:
For production deployments, use the Vercel World or Postgres World.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。