Skip to content

docs(vercel): stop calling the bare build's function index - #724

Merged
blove merged 1 commit into
mainfrom
docs/vercel-bare-build-name
Sep 18, 2026
Merged

blove merged 1 commit into
mainfrom
docs/vercel-bare-build-name

Conversation

@blove

@blove blove commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

One stale sentence on the Vercel guide, left behind by #717.

The contradiction

#717 made b4.func unconditional and updated six references on deployment/vercel.mdx, but not the opening line of "Compose with a frontend":

A bare build emits a single function named index behind a catch-all route...

Eleven lines later the same section says the runtime function is named b4.func in every build, which is the correct half. A reader following the first one looks for functions/index.func in 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 b4 for index would 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_NAME is "b4".
  • The root-shadowing guard moved to its own ROOT_VERCEL_FUNCTION_NAME ("index"), so the neighbouring claim that functionName: "index" together with static fails the build is still accurate and stays as written.
  • No index.func references remain on the page.

Verification

pnpm build, node scripts/check-docs.mjs, seo:lastmod:check, and pnpm lint pass. 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

#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]>
@vercel

vercel Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
b4-run Ready Ready Preview Sep 18, 2026 1:04am UTC

Request Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@blove
blove enabled auto-merge (squash) September 18, 2026 01:16
@blove
blove merged commit a46a765 into main Sep 18, 2026
30 of 31 checks passed
@blove
blove deleted the docs/vercel-bare-build-name branch September 18, 2026 01:21

This branch was successfully deployed

1 active and 1 inactive deployments
Preview — f09db1a7 Deployed Sep 18, 2026 by vercel[bot]
vercel-preview — f09db1a7 Deployed Sep 18, 2026 by blove via vercel-native #2055
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.

1 participant