Install dependencies
Install the required packages:
Nitro provides the build system needed to compile workflows. Learn more at nitro.build.
Configure Nitro
Create a This configuration:
nitro.config.ts file with the Workflow module:nitro.config.ts
- Enables the Workflow Nitro module
- Routes all requests to your Express app
- Uses Node.js format for compatibility with Express
How it works
The Express + Nitro integration:- Uses Nitro’s build system to compile workflows
- Generates workflow route handlers at
.well-known/workflow/v1/* - Supports both development (with HMR) and production builds
- Routes all non-workflow requests to your Express app
- Automatically handles workflow execution and resumption
Example workflow
workflows/user-signup.ts
Development
Run the development server:Production
Build and start the production server:Next steps
Core Concepts
Learn about workflows and steps
Nitro Integration
Learn more about the Nitro integration