Skip to content

Conversation

@adriandlam
Copy link
Member

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2025

⚠️ No Changeset found

Latest commit: 731efac

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link
Contributor

vercel bot commented Oct 29, 2025

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

Project Deployment Preview Comments Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview Comment Nov 5, 2025 2:08am
example-nextjs-workflow-webpack Ready Ready Preview Comment Nov 5, 2025 2:08am
example-workflow Ready Ready Preview Comment Nov 5, 2025 2:08am
workbench-express-workflow Ready Ready Preview Comment Nov 5, 2025 2:08am
workbench-nitro-workflow Ready Ready Preview Comment Nov 5, 2025 2:08am
workbench-nuxt-workflow Ready Ready Preview Comment Nov 5, 2025 2:08am
workbench-sveltekit-workflow Ready Ready Preview Comment Nov 5, 2025 2:08am
workbench-vite-workflow Ready Ready Preview Comment Nov 5, 2025 2:08am
workflow-docs Ready Ready Preview Comment Nov 5, 2025 2:08am

import * as e2e from './workflows/99_e2e.js';

export const allWorkflows = {
'workflows/0_calc.ts': demo,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'workflows/0_calc.ts': demo,
'workflows/0_demo.ts': demo,

The workflow file key name doesn't match the actual file. The key is 'workflows/0_calc.ts' but the file is actually named 0_demo.ts, making it unreachable.

View Details

Analysis

Workflow file key mismatch prevents accessing demo workflow

What fails: The allWorkflows object in _workflows.ts uses key 'workflows/0_calc.ts' but the actual file is named 0_demo.ts, making the demo workflow unreachable.

How to reproduce:

  1. Start the server with the workbench/express application
  2. Make a request to /api/trigger?workflowFile=workflows/0_demo.ts&workflowFn=simple

Result: Returns 400 error: {"error": "Workflow file \"workflows/0_demo.ts\" not found", "status": 400}

Expected: Should successfully load and execute the demo workflow module from workbench/express/workflows/0_demo.ts

Root cause: In _workflows.ts line 12, the dictionary key was 'workflows/0_calc.ts' but no such file exists. The import at line 1 correctly points to './workflows/0_demo.js', and the actual file on disk is workflows/0_demo.ts. The lookup in trigger.routes.ts line 19 uses allWorkflows[workflowFile] which fails when users request the actual file name.

Fix: Changed line 12 from 'workflows/0_calc.ts': demo, to 'workflows/0_demo.ts': demo, to match the actual file name and import source.

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.

3 participants