Configure Nuxt
Add the Workflow module to your Nuxt config:The Nuxt module automatically:
nuxt.config.ts
- Registers the
@workflow/nitromodule - Enables the TypeScript plugin by default
- Configures Nitro for workflow execution
Configuration Options
You can configure the TypeScript plugin:nuxt.config.ts
How it works
The Nuxt integration:- Wraps the Nitro integration for seamless Nuxt compatibility
- Uses Nuxt’s module system to configure Nitro automatically
- Enables TypeScript IntelliSense by default
- Works with both Nuxt 3 and Nuxt 4
- Inherits all Nitro workflow capabilities
Example workflow
server/workflows/user-onboarding.ts
Triggering workflows
Start workflows from API routes:server/api/onboard.post.ts
Development
Run the development server:Production
Build for production:TypeScript IntelliSense
The TypeScript plugin is enabled by default and provides:- Type checking for workflow and step functions
- Auto-completion for workflow APIs
- Error detection for invalid workflow patterns
tsconfig.json:
tsconfig.json
Next steps
Core Concepts
Learn about workflows and steps
API Reference
View the full Nuxt API reference