Skip to content

Fix Vercel build: drop functions.runtime partial-semver string#33

Merged
dougdevitre merged 2 commits into
mainfrom
claude/fix-vercel-runtime
May 16, 2026
Merged

Fix Vercel build: drop functions.runtime partial-semver string#33
dougdevitre merged 2 commits into
mainfrom
claude/fix-vercel-runtime

Conversation

@dougdevitre
Copy link
Copy Markdown
Owner

Problem

The first production deploy of cotrackpro-talk to Vercel failed with:

Function Runtimes must have a valid version, for example now-php@1.0.0.

vercel.json declared "runtime": "@vercel/node@5". Vercel's runtime parser now treats scoped packages as community runtimes and requires a full semver (5.1.0, not just 5).

Fix

Drop the runtime field entirely on both function configs. For the built-in @vercel/node runtime Vercel auto-detects from the framework — no version string needed. maxDuration: 60 (cron) and maxDuration: 30 (everything else) are preserved.

Test plan

  • CI green (typecheck/build/test/lint:config)
  • After merge: redeploy succeeds in the cotrackpro-talk Vercel project
  • /health and /call/incoming resolve on the new production URL

Generated by Claude Code

The previous "@vercel/node@5" failed the deploy with
"Function Runtimes must have a valid version, for example
now-php@1.0.0." Vercel's runtime parser now requires a full
semver and treats scoped packages as community runtimes.

For the built-in @vercel/node runtime we don't need to specify
runtime at all — Vercel auto-detects. maxDuration is preserved.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

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

Project Deployment Actions Updated (UTC)
cotrackpro-talk Ready Ready Preview, Comment May 16, 2026 5:32am

Request Review

After dropping functions.runtime, the build failed with:
"No Output Directory named 'public' found after the Build completed."

This is an API-only project (no framework, no static build) but
Vercel still expects a public/ directory. Adding a minimal index.html
satisfies the build and gives the root domain a useful landing page
that points at the relevant endpoints + the repo.
@dougdevitre dougdevitre merged commit ff3355c into main May 16, 2026
3 checks passed
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.

2 participants