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

推荐订阅源

Recent Announcements
Recent Announcements
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 聂微东
爱范儿
爱范儿
Jina AI
Jina AI
博客园 - Franky
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog
M
MIT News - Artificial intelligence
aimingoo的专栏
aimingoo的专栏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
人人都是产品经理
人人都是产品经理
腾讯CDC
博客园_首页
月光博客
月光博客
有赞技术团队
有赞技术团队
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
MyScale Blog
MyScale Blog

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 Deploying Astro Express Fastify Hono Getting Started NestJS Next.js Nitro Nuxt Python SvelteKit Vite corrupted-event-log fetch-in-workflow hook-conflict Errors
configureWorkflowController
2026-06-12 · via Workflow SDK Documentation

Point WorkflowController at the generated workflow bundles.

Configures the output directory that WorkflowController loads the generated workflow bundles (steps.mjs, workflows.mjs, webhook.mjs, manifest.json) from.

WorkflowModule.forRoot() calls this for you with its resolved outDir — call it yourself only when registering WorkflowController manually. The controller's route handlers throw if no directory has been configured.

import { join } from "node:path";
import { configureWorkflowController } from "workflow/nest"; 

configureWorkflowController(join(process.cwd(), ".nestjs/workflow")); 

Parameters

ParameterTypeDescription
outDirstringDirectory containing the generated workflow bundles. Should match the outDir used by the builder (default: .nestjs/workflow in the working directory).

Returns

Returns void.