Skip to content

[perf]: add configurable dirs option to withWorkflow#843

Merged
karthikscale3 merged 7 commits intomainfrom
karthik/perf
Jan 28, 2026
Merged

[perf]: add configurable dirs option to withWorkflow#843
karthikscale3 merged 7 commits intomainfrom
karthik/perf

Conversation

@karthikscale3
Copy link
Copy Markdown
Contributor

@karthikscale3 karthikscale3 commented Jan 23, 2026

Summary

Adds a dirs configuration option to withWorkflow() that allows users to specify which directories to scan for workflow directives. This addresses OOM errors in large Next.js applications where scanning the entire pages/app directories consumes excessive memory.

Changes

  • Add dirs option to withWorkflow() config (overrides defaults when provided)
  • Default: ['pages', 'app', 'src/pages', 'src/app']
  • Document all withWorkflow configuration options in API reference
  • Add troubleshooting section for OOM errors during build

Usage

import { withWorkflow } from "workflow/next";

export default withWorkflow(nextConfig, {
// Only scan specific directories instead of entire app
dirs: ['workflows', 'app/api'],
});

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 23, 2026

🦋 Changeset detected

Latest commit: 1da647b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
workflow Patch
@workflow/example-nest Patch
@workflow/ai Patch
@workflow/docs-typecheck Patch
@workflow/world-testing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jan 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Jan 27, 2026 7:03pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Jan 27, 2026 7:03pm
example-workflow Ready Ready Preview, Comment Jan 27, 2026 7:03pm
workbench-astro-workflow Ready Ready Preview, Comment Jan 27, 2026 7:03pm
workbench-express-workflow Ready Ready Preview, Comment Jan 27, 2026 7:03pm
workbench-fastify-workflow Ready Ready Preview, Comment Jan 27, 2026 7:03pm
workbench-hono-workflow Ready Ready Preview, Comment Jan 27, 2026 7:03pm
workbench-nitro-workflow Ready Ready Preview, Comment Jan 27, 2026 7:03pm
workbench-nuxt-workflow Ready Ready Preview, Comment Jan 27, 2026 7:03pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Jan 27, 2026 7:03pm
workbench-vite-workflow Ready Ready Preview, Comment Jan 27, 2026 7:03pm
workflow-docs Ready Ready Preview, Comment Jan 27, 2026 7:03pm
workflow-nest Ready Ready Preview, Comment Jan 27, 2026 7:03pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 23, 2026

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 0.040s (-5.2% 🟢) 1.018s (~) 0.978s 10 1.00x
💻 Local Express 0.042s (-6.4% 🟢) 1.007s (~) 0.965s 10 1.05x
💻 Local Nitro 0.043s (-7.9% 🟢) 1.007s (~) 0.964s 10 1.07x
🐘 Postgres Next.js (Turbopack) 0.215s (+19.9% 🔺) 1.022s (~) 0.807s 10 5.37x
🐘 Postgres Express 0.237s (-23.3% 🟢) 1.015s (~) 0.777s 10 5.94x
🐘 Postgres Nitro 0.256s (-7.0% 🟢) 1.013s (~) 0.758s 10 6.40x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 0.668s (+6.5% 🔺) 1.571s (-9.3% 🟢) 0.903s 10 1.00x
▲ Vercel Express 0.673s (-2.0%) 1.758s (+18.0% 🔺) 1.085s 10 1.01x
▲ Vercel Next.js (Turbopack) 0.733s (-9.1% 🟢) 1.646s (-22.3% 🟢) 0.913s 10 1.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 1.089s (~) 2.014s (~) 0.924s 10 1.00x
💻 Local Express 1.113s (-0.5%) 2.007s (~) 0.893s 10 1.02x
💻 Local Nitro 1.114s (~) 2.007s (~) 0.893s 10 1.02x
🐘 Postgres Next.js (Turbopack) 1.885s (-7.6% 🟢) 2.219s (-15.3% 🟢) 0.334s 10 1.73x
🐘 Postgres Nitro 2.161s (+1.8%) 3.015s (~) 0.854s 10 1.98x
🐘 Postgres Express 2.182s (+2.6%) 3.016s (~) 0.834s 10 2.00x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.916s (-6.2% 🟢) 3.737s (-1.8%) 0.822s 10 1.00x
▲ Vercel Nitro 2.938s (-6.5% 🟢) 3.652s (-10.1% 🟢) 0.714s 10 1.01x
▲ Vercel Next.js (Turbopack) 3.088s (+4.5%) 3.912s (+0.5%) 0.824s 10 1.06x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 10.706s (~) 11.020s (~) 0.314s 5 1.00x
💻 Local Nitro 10.827s (~) 11.013s (~) 0.186s 5 1.01x
💻 Local Express 10.832s (~) 11.014s (~) 0.182s 5 1.01x
🐘 Postgres Next.js (Turbopack) 15.285s (+6.8% 🔺) 16.038s (+9.6% 🔺) 0.753s 5 1.43x
🐘 Postgres Express 20.432s (~) 21.038s (~) 0.607s 5 1.91x
🐘 Postgres Nitro 20.473s (+22.8% 🔺) 21.035s (+22.1% 🔺) 0.563s 5 1.91x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 23.632s (+1.4%) 24.533s (+0.9%) 0.900s 5 1.00x
▲ Vercel Next.js (Turbopack) 23.754s (+1.4%) 24.575s (+1.6%) 0.821s 5 1.01x
▲ Vercel Nitro 24.809s (+5.1% 🔺) 25.719s (+3.8%) 0.911s 5 1.05x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 1.384s (-0.9%) 2.006s (~) 0.621s 15 1.00x
💻 Local Next.js (Turbopack) 1.399s (+0.8%) 2.012s (~) 0.613s 15 1.01x
💻 Local Express 1.409s (+0.8%) 2.006s (~) 0.597s 15 1.02x
🐘 Postgres Next.js (Turbopack) 1.828s (-14.5% 🟢) 2.013s (-25.6% 🟢) 0.185s 15 1.32x
🐘 Postgres Express 2.187s (+15.9% 🔺) 3.014s (+25.7% 🔺) 0.827s 10 1.58x
🐘 Postgres Nitro 2.219s (~) 3.013s (+16.1% 🔺) 0.795s 10 1.60x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 3.393s (-13.0% 🟢) 4.139s (-10.0% 🟢) 0.747s 8 1.00x
▲ Vercel Express 3.444s (+14.6% 🔺) 4.279s (+13.3% 🔺) 0.835s 8 1.02x
▲ Vercel Nitro 3.515s (+17.1% 🔺) 4.330s (+8.1% 🔺) 0.815s 7 1.04x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 2.447s (+1.1%) 3.051s (-2.7%) 0.604s 10 1.00x
💻 Local Express 2.507s (+1.8%) 3.022s (-3.8%) 0.514s 10 1.02x
💻 Local Nitro 2.518s (+2.9%) 3.018s (-1.2%) 0.500s 10 1.03x
🐘 Postgres Express 8.635s (-5.4% 🟢) 9.314s (-2.5%) 0.678s 4 3.53x
🐘 Postgres Nitro 10.164s (+1.6%) 10.779s (+3.8%) 0.615s 3 4.15x
🐘 Postgres Next.js (Turbopack) 10.959s (-17.1% 🟢) 11.693s (-12.7% 🟢) 0.735s 3 4.48x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.680s (+12.7% 🔺) 4.474s (+14.9% 🔺) 0.795s 7 1.00x
▲ Vercel Nitro 3.683s (-11.9% 🟢) 4.223s (-13.0% 🟢) 0.540s 8 1.00x
▲ Vercel Next.js (Turbopack) 3.890s (+0.9%) 4.597s (-1.6%) 0.708s 7 1.06x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 1.396s (+1.0%) 2.012s (~) 0.616s 15 1.00x
💻 Local Nitro 1.424s (+0.8%) 2.006s (~) 0.582s 15 1.02x
💻 Local Express 1.442s (+2.2%) 2.005s (~) 0.563s 15 1.03x
🐘 Postgres Next.js (Turbopack) 1.734s (-27.1% 🟢) 2.160s (-19.5% 🟢) 0.426s 14 1.24x
🐘 Postgres Express 2.143s (-1.0%) 2.596s (~) 0.453s 12 1.54x
🐘 Postgres Nitro 2.183s (-3.1%) 2.512s (-8.6% 🟢) 0.328s 12 1.56x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.924s (+0.5%) 3.711s (-2.4%) 0.787s 9 1.00x
▲ Vercel Next.js (Turbopack) 2.992s (+2.0%) 3.858s (+4.0%) 0.866s 8 1.02x
▲ Vercel Express 3.348s (+12.1% 🔺) 4.234s (+13.3% 🔺) 0.886s 8 1.15x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 2.589s (+5.3% 🔺) 3.030s (~) 0.440s 10 1.00x
💻 Local Express 2.638s (-0.9%) 3.024s (-3.4%) 0.387s 10 1.02x
💻 Local Nitro 2.663s (+6.1% 🔺) 3.020s (~) 0.357s 10 1.03x
🐘 Postgres Express 10.106s (-15.4% 🟢) 10.752s (-15.3% 🟢) 0.646s 3 3.90x
🐘 Postgres Next.js (Turbopack) 11.091s (-19.9% 🟢) 11.725s (-16.5% 🟢) 0.633s 3 4.28x
🐘 Postgres Nitro 12.177s (-4.9%) 12.387s (-7.3% 🟢) 0.210s 3 4.70x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.094s (-18.6% 🟢) 4.020s (-11.5% 🟢) 0.926s 8 1.00x
▲ Vercel Express 3.431s (+10.1% 🔺) 4.269s (+13.3% 🔺) 0.837s 8 1.11x
▲ Vercel Next.js (Turbopack) 3.676s (+11.1% 🔺) 4.417s (+15.6% 🔺) 0.741s 7 1.19x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 0.147s (+2.5%) 1.004s (~) 0.017s (+3.0%) 1.029s (~) 0.881s 10 1.00x
💻 Local Nitro 0.180s (+0.7%) 0.993s (~) 0.015s (+4.3%) 1.022s (~) 0.842s 10 1.22x
💻 Local Express 0.185s (-2.8%) 0.992s (~) 0.015s (+12.7% 🔺) 1.022s (~) 0.837s 10 1.26x
🐘 Postgres Next.js (Turbopack) 1.054s (+57.1% 🔺) 1.765s (+87.2% 🔺) 0.000s (-100.0% 🟢) 1.818s (+78.8% 🔺) 0.764s 10 7.15x
🐘 Postgres Express 2.228s (+14.4% 🔺) 2.815s (+19.0% 🔺) 0.000s (NaN%) 3.015s (+15.4% 🔺) 0.788s 10 15.11x
🐘 Postgres Nitro 2.283s (+78.9% 🔺) 2.759s (+56.4% 🔺) 0.000s (NaN%) 3.015s (+49.8% 🔺) 0.732s 10 15.49x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.049s (-4.7%) 3.460s (+3.4%) 0.488s (-49.1% 🟢) 4.463s (-8.8% 🟢) 1.414s 10 1.00x
▲ Vercel Express 3.145s (+1.2%) 3.457s (+5.0%) 0.595s (-54.0% 🟢) 4.635s (-9.9% 🟢) 1.490s 10 1.03x
▲ Vercel Next.js (Turbopack) 3.149s (-1.0%) 3.313s (+2.4%) 0.771s (-39.7% 🟢) 4.607s (-8.2% 🟢) 1.458s 10 1.03x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Next.js (Turbopack) 7/8
🐘 Postgres Next.js (Turbopack) 6/8
▲ Vercel Nitro 4/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 💻 Local 8/8
Next.js (Turbopack) 💻 Local 8/8
Nitro 💻 Local 8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 23, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 457 0 38 495
✅ 💻 Local Development 418 0 32 450
✅ 📦 Local Production 418 0 32 450
✅ 🐘 Local Postgres 418 0 32 450
✅ 🪟 Windows 45 0 0 45
❌ 🌍 Community Worlds 31 161 0 192
✅ 📋 Other 123 0 12 135
Total 1910 161 146 2217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 41 0 4
✅ example 41 0 4
✅ express 41 0 4
✅ fastify 41 0 4
✅ hono 41 0 4
✅ nextjs-turbopack 44 0 1
✅ nextjs-webpack 44 0 1
✅ nitro 41 0 4
✅ nuxt 41 0 4
✅ sveltekit 41 0 4
✅ vite 41 0 4
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 45 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 0
❌ mongodb 5 40 0
✅ redis-dev 3 0 0
❌ redis 5 40 0
✅ starter-dev 3 0 0
❌ starter 4 41 0
✅ turso-dev 3 0 0
❌ turso 5 40 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 41 0 4
✅ e2e-local-postgres-nest-stable 41 0 4
✅ e2e-local-prod-nest-stable 41 0 4

📋 View full workflow run

@karthikscale3 karthikscale3 requested review from TooTallNate and VaguelySerious and removed request for TooTallNate January 23, 2026 23:13
@karthikscale3 karthikscale3 requested review from TooTallNate and pranaygp and removed request for VaguelySerious January 23, 2026 23:13
@pranaygp pranaygp requested a review from ijjk January 23, 2026 23:33
Comment thread packages/builders/src/base-builder.ts Outdated
Allow users to specify which directories to scan for workflow directives,
helping reduce memory usage and build times in large Next.js applications.

- Add `dirs` option that overrides the default directories
- Document all configuration options in API reference
- Add troubleshooting guide for OOM errors during build
Add missing import statements and nextConfig declaration to the
troubleshooting code example to fix docs typecheck.
Move the OOM troubleshooting section from the API reference to the
existing troubleshooting section in docs/getting-started/next.mdx
for better discoverability.
Copy link
Copy Markdown
Member

@VaguelySerious VaguelySerious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea looks good to me. Will leave others to comment on whether the esbuild plugin changes could break any weird use-case I don't know about

Comment thread .changeset/optimize-workflow-discovery.md Outdated
Comment thread .changeset/configurable-dirs-next.md Outdated
@rovo89
Copy link
Copy Markdown
Contributor

rovo89 commented Jan 28, 2026

@karthikscale3 I think this makes sense, but why don't you include "src/workflows" and "workflows" by default? That seems to be even more important than all the other directories, as e.g. the docs for Next.js suggest this directory. Which feels right, just like I would put "components", "lib", "actions" etc. next to the "app" folder, not inside it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants