withWorkflow

Configures webpack/turbopack loaders to transform workflow code ("use step"/"use workflow" directives)

Usage

To enable "use step" and "use workflow" directives while developing locally or deploying to production, wrap your nextConfig with withWorkflow.

next.config.ts
import { withWorkflow } from 'workflow/next'; 
import type { NextConfig } from 'next';
 
const nextConfig: NextConfig = {
  // … rest of your Next.js config
};
 
export default withWorkflow(nextConfig); 

On this page