Repository navigation
docs(upgrading): record the vercel function rename to b4.func - #725
Merged
Merged
Conversation
#717 moved the vercel target's published function from functions/index.func to functions/b4.func and its route from /index to /b4, in every build rather than only when static assets are configured. Its changeset says so, but the Upgrading page carries entries at this weight and had none, so the changeset was the only place a user learned their deploy script needs updating. The entry splits the migration, which is the part a reader gets burned by: an app with no static assets can pin functionName: "index" and keep the old path, but an app configuring build.vercel.static cannot, because the build rejects that combination rather than publishing a tree whose root is shadowed. Gap found by the #679 session; behaviour verified against the shipped resolver on main rather than the PR description. Co-Authored-By: Claude Opus 5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
A reader who hits that build failure asks whether it is an oversight. It is not: an explicit index shadows the static root exactly as the old default did, so allowing it would reintroduce #687 in the configuration where it matters most. Rationale from the #717 author. Co-Authored-By: Claude Opus 5 <[email protected]>
blove
temporarily deployed
to
vercel-preview
September 18, 2026 01:15 — with
GitHub Actions
Inactive
blove
enabled auto-merge (squash)
September 18, 2026 01:16
This branch was successfully deployed
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.
Why
#717 moved the
verceltarget's published function fromfunctions/index.func/tofunctions/b4.func/, and its route from/indexto/b4, in every build rather than only whenbuild.vercel.staticwas configured. It shipped a thorough changeset. But the Upgrading page carries entries at exactly this weight, and it had none, so the changeset was the only place a user learned their deploy script needs updating.The gap was found by the #679 session. I verified the behaviour against the shipped resolver on main rather than the PR description, which matters here because the attribution and the conditionality both shifted between PRs during the day.
The part worth reviewing
The migration splits, and the split is easy to get wrong:
build.vercel: { functionName: "index" }and keep its old published path indefinitely.build.vercel.staticcannot.resolveVercelCompositionrejects that combination, because a function namedindexwould shadow the static root. For that app the path move is mandatory.An entry that said "set
functionName: "index"to keep the old name" without that caveat would hand the users most likely to be composing a tree an option that fails their build. The entry shows both, with the failing case marked as failing.The name rule quoted in the entry is main's
FUNCTION_NAME_PATTERN, one path segment of letters, digits,_or-, and I confirmedb4 checkreaches it throughassertVercelBuildConfigintoresolveVercelComposition.Verification
apps/webSEO and sitemap tests: 67 passed.scripts/check-docs.mjs: passes.Not in scope
The contradiction at
deployment/vercel.mdxline 145 is #724, owned by the session that wrote the page. This PR does not touch it.🤖 Generated with Claude Code