Skip to content

Fix public/**/* static handling for experimental backends - #15216

Closed
rexdotsh wants to merge 2 commits into
vercel:mainfrom
rexdotsh:fix/public-static-experimental-backends
Closed

rexdotsh wants to merge 2 commits into
vercel:mainfrom
rexdotsh:fix/public-static-experimental-backends

Conversation

@rexdotsh

@rexdotsh rexdotsh commented Feb 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • include @vercel/backends in public/**/* static-builder detection so experimental backends mode keeps serving public/ assets
  • keep existing public/**/* behavior for @vercel/express, @vercel/hono, @vercel/python, and @vercel/go
  • add regression tests for both default and featHandleMiss=true detect-builders modes

Testing

  • pnpm -C packages/fs-detectors test test/unit.builds-and-routes-detector.test.ts
  • pnpm -C packages/fs-detectors type-check

Fixes #15215

Note

Low Risk Change

This PR adds support for experimental backends in static file detection logic and includes regression tests, representing a low-risk feature extension with no security implications.

  • Extends public/**/* static builder detection to include @vercel/backends
  • Refactors direct string comparisons to use isOfficialRuntime() helper
  • Adds regression tests for experimental backends mode

Risk assessment for commit c2df6d5.

@rexdotsh
rexdotsh requested review from a team and agadzik as code owners February 23, 2026 22:30
@changeset-bot

changeset-bot Bot commented Feb 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c2df6d5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@vercel/fs-detectors Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jeffsee55

Copy link
Copy Markdown
Contributor

Thanks for the contribution, looks great!

jeffsee55 added a commit that referenced this pull request Feb 28, 2026
Forked from @rexdotsh's
[PR](#15216)

<!-- VADE_RISK_START -->
> [!NOTE]
> Low Risk Change
>
> This PR adds support for experimental backends to the existing static
asset handling logic, extending an existing pattern to a new runtime
type with corresponding test coverage.
> 
> - Extends `detectBuilders` to include `@vercel/backends` in static
asset handling
> - Refactors direct string comparisons to use `isOfficialRuntime()`
helper
> - Adds two test cases for experimental backends with public files
>
> <sup>Risk assessment for [commit
9050f84](https://github.com/vercel/vercel/commit/9050f84012eb80a53a3e5aa5ea69b05306fe2a89).</sup>
<!-- VADE_RISK_END -->

Co-authored-by: rexdotsh <[email protected]>
@rexdotsh

Copy link
Copy Markdown
Contributor Author

Merged as #15261 so closing. Thanks!

@rexdotsh rexdotsh closed this Feb 28, 2026
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.

Experimental backends mode stops serving files from public/

2 participants