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

推荐订阅源

F
Fortinet All Blogs
WordPress大学
WordPress大学
The Cloudflare Blog
云风的 BLOG
云风的 BLOG
博客园 - Franky
D
Docker
小众软件
小众软件
阮一峰的网络日志
阮一峰的网络日志
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
U
Unit 42
M
MIT News - Artificial intelligence
B
Blog
GbyAI
GbyAI
C
Check Point Blog
P
Proofpoint News Feed
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
IT之家
IT之家
Google DeepMind News
Google DeepMind News
V
V2EX
Stack Overflow Blog
Stack Overflow 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.