Slash forward icon
  • Latest
    The framework for building agents
    Frameworks
    • Next.js
    • Svelte
    • Nuxt
    • Nitro
    SDKs
    • AI SDK
    • Chat SDK
    • Flags SDK
    Other
    • Turborepo
    • Shadcn
    • SWR
    • just-bash
    • deepsec
  • Docs
  • Cookbook
  • Worlds
  • Examples
GitHub
DocsCookbookWorldsExamplesGitHub
Vercel OSS

Latest

  • eve

Frameworks

  • Next.js
  • Svelte
  • Nuxt
  • Nitro

SDKs

  • AI SDK
  • Chat SDK
  • Flags SDK

Other

  • Turborepo
  • Shadcn
  • SWR
  • just-bash
  • deepsec
  • Getting Started
  • Foundations
  • How it works
  • Observability
  • AI Agents
  • Testing
  • Deploying
  • Errors
  • Comparisons
  • API Reference
  • Overview
  • Workflow Globals
  • workflow
    • createHook
    • createWebhook
    • defineHook
    • fetch
    • getStepMetadata
    • getWorkflowMetadata
    • getWritable
    • sleep
    • FatalError
    • RetryableError
  • workflow/api
    • getHookByToken
    • getRun
    • resumeHook
    • resumeWebhook
    • start
  • workflow/runtime
    • getWorld
    • World SDK
    • createWorld
    • setWorld
    • getWorldHandlers
    • workflowEntrypoint
    • stepEntrypoint
    • healthCheck
  • workflow/observability
    • hydrateResourceIO
    • observabilityRevivers
    • hydrateData
    • parseStepName
    • parseWorkflowName
    • parseClassName
  • workflow/next
    • withWorkflow
  • workflow/nitro
  • workflow/nuxt
  • workflow/sveltekit
    • workflowPlugin
  • workflow/astro
    • workflow
  • workflow/vite
    • workflow
  • workflow/nest
    • WorkflowModule
    • NestLocalBuilder
    • WorkflowController
    • configureWorkflowController
  • workflow/errors
    • WorkflowError
    • HookNotFoundError
    • HookConflictError
    • StepNotRegisteredError
    • WorkflowNotRegisteredError
    • WorkflowRunNotFoundError
    • WorkflowRunFailedError
    • WorkflowRunCancelledError
    • WorkflowRunNotCompletedError
    • WorkflowRuntimeError
    • WorkflowWorldError
    • ThrottleError
    • EntityConflictError
    • RunExpiredError
    • RunNotSupportedError
    • TooEarlyError
  • @workflow/serde
    • WORKFLOW_SERIALIZE
    • WORKFLOW_DESERIALIZE
  • @workflow/ai
    • DurableAgent
    • WorkflowChatTransport
  • @workflow/vitest
API Reference

workflow/next

Next.js integration for automatic bundling and runtime configuration.

Next.js integration for Workflow SDK that automatically configures bundling and runtime support.

Functions

withWorkflow

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

PreviousparseClassNameNextwithWorkflow

On this page

Functions

Agent Stack

  • AI SDK
  • AI Gateway
  • Sandbox
  • Workflows
  • ConnectNew
  • PassportNew
  • eveNew

Core Platform

  • CI/CD
  • Content Delivery
  • Fluid Compute
  • Observability

Security

  • Platform Security
  • WAF
  • Bot Management
  • Bot ID

Tools

  • Vercel DropNew
  • Vercel Agent
  • Vercel PluginNew
  • Agent Skills
  • Next.js
  • Domains
  • v0

Frameworks

  • eveNew
  • Nuxt
  • SvelteKit
  • Nitro
  • Turborepo
  • Tanstack Start
  • FastAPI
  • xmcp
  • All frameworks

SDKs

  • Vercel SDK
  • Workflow SDKNew
  • Flags SDK
  • Chat SDKNew
  • Queues SDKNew
  • Streamdown

Build

  • AI Apps
  • Web Apps
  • Marketing Sites
  • Platforms
  • Commerce
  • Platform Engineers
  • Design Engineers

Learn

  • Docs
  • Blog
  • Changelog
  • Knowledge Base
  • Academy
  • Articles
  • Community

Explore

  • Customers
  • Marketplace
  • Templates
  • Partner Finder
  • Vercel + AWS

Company

  • About
  • Careers
  • Press
  • Events
  • Startups
  • Shipped on Vercel
  • Open Source Program
  • Enterprise
  • Pricing
  • Help

Legal & Trust

  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • DPA
  • Acceptable Use Policy
  • Legal
  • Trust Center
  • Status

Social

  • GitHub
  • X
  • LinkedIn
  • YouTube
  • Instagram