Repository navigation
docs(vercel): stop calling the bare build's function index - #724
Merged
Merged
Conversation
#717 made the b4.func name unconditional and updated six references on this page, but the opening line of "Compose with a frontend" still said a bare build emits "a single function named `index`", contradicting the same section eleven lines later. A reader following it goes looking for functions/index.func in a bare build and does not find it. Not a word swap: the sentence used the name to explain why a bare build is the wrong shape for a SPA, and that reason is gone now that nothing is served at the root. The real reason is what a bare build omits, so the sentence now says that — one function, a catch-all, and no static assets, second function, or routes of your own. Verified against origin/main rather than the changeset: DEFAULT_VERCEL_FUNCTION_NAME is "b4" and the root-shadowing guard moved to its own ROOT_VERCEL_FUNCTION_NAME ("index"), so the neighbouring claim that functionName: "index" plus static fails the build is still accurate and stays. Found by the session working on #687. Co-Authored-By: Claude Opus 5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
blove
temporarily deployed
to
vercel-preview
September 18, 2026 01:04 — 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.
One stale sentence on the Vercel guide, left behind by #717.
The contradiction
#717 made
b4.funcunconditional and updated six references ondeployment/vercel.mdx, but not the opening line of "Compose with a frontend":Eleven lines later the same section says the runtime function is named
b4.funcin every build, which is the correct half. A reader following the first one looks forfunctions/index.funcin a bare build and does not find it.Why it is not a word swap
The sentence used the name to explain why a bare build is the wrong shape for an app with a SPA. That reason no longer exists: nothing is served at the root any more, which is the whole point of #717. Substituting
b4forindexwould leave the conclusion attached to a cause that is gone.What actually makes a bare build the wrong shape is what it omits, so the sentence now says that: one function, a catch-all route, and no static assets, second function, or routes of your own.
Verified against main, not the changeset
DEFAULT_VERCEL_FUNCTION_NAMEis"b4".ROOT_VERCEL_FUNCTION_NAME("index"), so the neighbouring claim thatfunctionName: "index"together withstaticfails the build is still accurate and stays as written.index.funcreferences remain on the page.Verification
pnpm build,node scripts/check-docs.mjs,seo:lastmod:check, andpnpm lintpass. Web SEO and docs-anchor suites: 89 passed.Found by the session working on #687. Docs-only, no changeset. Not a release.
🤖 Generated with Claude Code