workflow/nest
NestJS integration for Workflow SDK. The WorkflowModule builds the workflow bundles on application startup and registers the controller that serves the workflow runtime routes.
NestJS integration is in beta. Both @nestjs/platform-express and @nestjs/platform-fastify are supported, and deploying to Vercel goes through workflow-nest build --vercel. The same exports are also available from the @workflow/nest package.
Exports
WorkflowModule
NestJS module that builds workflow bundles on startup and registers the workflow controller
NestLocalBuilder
Builder that compiles workflow files into step, workflow, and webhook bundles
WorkflowController
Controller that serves the workflow runtime routes under .well-known/workflow/v1
isWorkflowRequest()
Recognises a workflow request in a guard, so queue deliveries and webhooks are not rejected by your own auth
configureWorkflowController()
Points WorkflowController at the directory containing the generated workflow bundles