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
| Parameter | Type | Description |
|---|---|---|
outDir | string | Directory containing the generated workflow bundles. Should match the outDir used by the builder (default: .nestjs/workflow in the working directory). |
Returns
Returns void.











