Fix Vercel build: drop functions.runtime partial-semver string#33
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The first production deploy of
cotrackpro-talkto Vercel failed with:vercel.jsondeclared"runtime": "@vercel/node@5". Vercel's runtime parser now treats scoped packages as community runtimes and requires a full semver (5.1.0, not just5).Fix
Drop the
runtimefield entirely on both function configs. For the built-in@vercel/noderuntime Vercel auto-detects from the framework — no version string needed.maxDuration: 60(cron) andmaxDuration: 30(everything else) are preserved.Test plan
cotrackpro-talkVercel project/healthand/call/incomingresolve on the new production URLGenerated by Claude Code