Skip to content

[services] strip services route prefix in ruby runtime#15099

Merged
ricardo-agz merged 6 commits intomainfrom
ricardo/be-439-remove-ruby-route-prefix
Feb 23, 2026
Merged

[services] strip services route prefix in ruby runtime#15099
ricardo-agz merged 6 commits intomainfrom
ricardo/be-439-remove-ruby-route-prefix

Conversation

@ricardo-agz
Copy link
Copy Markdown
Contributor

@ricardo-agz ricardo-agz commented Feb 18, 2026

Strip service route prefix in ruby runtime by setting SCRIPT_NAME when services are auto-detected so app sees /ping instead of /_/backend/ping.

Note

Low Risk Change

This PR adds Ruby runtime support for service route prefix stripping by setting SCRIPT_NAME, consisting of new utility functions, test fixtures, and framework detection changes with no security-sensitive modifications.

  • Adds new vc_utils.rb with route prefix normalization/stripping helpers
  • Extends framework detection to include experimental runtime frameworks
  • Adds e2e test fixture for Ruby backend service auto-detection

Risk assessment for commit f00fb05.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 18, 2026

🦋 Changeset detected

Latest commit: f00fb05

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

This PR includes changesets to release 3 packages
Name Type
@vercel/fs-detectors Patch
@vercel/ruby Patch
vercel 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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 18, 2026

📦 CLI Tarball Ready

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-agstj7g2f.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-agstj7g2f.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

Python Runtime Wheel

A Python runtime wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_RUNTIME_PYTHON="vercel-runtime @ https://vercel-agstj7g2f.vercel.sh/tarballs/vercel_runtime-0.5.0.dev1771532712+f00fb05-py3-none-any.whl"

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 18, 2026

🧪 Unit Test Strategy

Comparing: 847ea59f00fb05 (view diff)

Strategy: Affected packages only

✅ Only testing packages that have been modified or depend on modified packages.

Affected packages - 7 (18%)
  1. @vercel/config
  2. @vercel/fs-detectors
  3. @vercel/next
  4. @vercel/python
  5. @vercel/ruby
  6. @vercel/static-build
  7. vercel
Unaffected packages - 33 (83%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/build-utils
  4. @vercel/cervel
  5. @vercel/cli-auth
  6. @vercel/client
  7. @vercel/detect-agent
  8. @vercel/edge
  9. @vercel/elysia
  10. @vercel/error-utils
  11. @vercel/express
  12. @vercel/fastify
  13. @vercel/firewall
  14. @vercel/frameworks
  15. @vercel/functions
  16. @vercel/gatsby-plugin-vercel-builder
  17. @vercel/go
  18. @vercel/h3
  19. @vercel/hono
  20. @vercel/hydrogen
  21. @vercel/koa
  22. @vercel/nestjs
  23. @vercel/node
  24. @vercel/oidc
  25. @vercel/oidc-aws-credentials-provider
  26. @vercel/python-analysis
  27. @vercel/redwood
  28. @vercel/related-projects
  29. @vercel/remix-builder
  30. @vercel/routing-utils
  31. @vercel/rust
  32. @vercel/static-config
  33. examples

Results

  • Unit tests: Only affected packages will run unit tests
  • E2E tests: Running in parallel via E2E Tests workflow
  • Type checks: Only affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

@ricardo-agz ricardo-agz merged commit 88817b1 into main Feb 23, 2026
185 checks passed
@ricardo-agz ricardo-agz deleted the ricardo/be-439-remove-ruby-route-prefix branch February 23, 2026 20:35
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.

3 participants