Skip to content

Conversation

@alandotcom
Copy link

The runtime configuration option (e.g., "nodejs24.x") was not being passed to the generated .vc-config.json files, causing workflow functions to always deploy with the default nodejs22.x runtime on Vercel.

This fix:

  • Adds runtime field to BaseWorkflowConfig type
  • Adds runtime to createBaseBuilderConfig helper
  • Passes runtime to all three createVcConfig calls in vercel-build-output-api.ts
  • Adds runtime option to Nitro ModuleOptions
  • Passes runtime through Nitro and Astro builders

Fixes #798

@changeset-bot
Copy link

changeset-bot bot commented Jan 17, 2026

🦋 Changeset detected

Latest commit: 399dbd3

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

This PR includes changesets to release 11 packages
Name Type
@workflow/builders Patch
@workflow/nitro Patch
@workflow/astro Patch
@workflow/cli Patch
@workflow/next Patch
@workflow/sveltekit Patch
@workflow/nuxt Patch
workflow Patch
@workflow/world-testing Patch
@workflow/docs-typecheck Patch
@workflow/ai 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
Contributor

vercel bot commented Jan 17, 2026

@alandotcom is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

The `runtime` configuration option (e.g., "nodejs24.x") was not being
passed to the generated .vc-config.json files, causing workflow functions
to always deploy with the default nodejs22.x runtime.

This fix:
- Adds `runtime` field to BaseWorkflowConfig type
- Adds `runtime` to createBaseBuilderConfig helper
- Passes runtime to all three createVcConfig calls in vercel-build-output-api.ts
- Adds `runtime` option to Nitro ModuleOptions
- Passes runtime through Nitro and Astro builders

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Alan Cohen <alan.mit@gmail.com>
@alandotcom alandotcom force-pushed the alan/runtime-option-fix branch from b5cdf38 to 399dbd3 Compare January 17, 2026 16:27
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.

Runtime option not passed to Vercel Build Output API functions

1 participant