Installation
Usage
Add the workflow module to your Nuxt configuration:nuxt.config.ts
API
Module Options
Configure the module via theworkflow key in your Nuxt config:
nuxt.config.ts
Enable TypeScript plugin for workflow.Default:
trueConfiguration Examples
Basic Configuration
nuxt.config.ts
Disable TypeScript Plugin
nuxt.config.ts
How It Works
The Nuxt module acts as a wrapper around the Nitro module (@workflow/nitro):
- Module Setup: Adds
@workflow/nitrotonuxt.options.nitro.modules - Option Passthrough: Forwards
typescriptPluginoption to Nitro configuration - Nitro Integration: All workflow functionality is provided by the underlying Nitro module
Module Configuration
The module is defined with:- Name:
workflow - Config Key:
workflow - Documentation: https://useworkflow.dev/installation/nuxt
Nitro Integration
All workflow functionality comes from@workflow/nitro, including:
- Workflow discovery and building
- Route handler generation
- Development HMR
- Vercel deployment support
- Additional options (via
nuxt.options.nitro.workflow) - Generated routes
- Build process
- Deployment
Advanced Configuration
You can access Nitro-specific options directly:nuxt.config.ts
dirs- Directories to scan for workflowstypescriptPlugin- Enable TypeScript pluginruntime- Node.js runtime version for Vercel
Generated Routes
The module inherits all routes from@workflow/nitro:
POST /.well-known/workflow/v1/flowPOST /.well-known/workflow/v1/stepPOST /.well-known/workflow/v1/webhook/:tokenGET /.well-known/workflow/v1/manifest.json(whenWORKFLOW_PUBLIC_MANIFEST=1)