Skip to content

[services] inject service URLs into web services as local paths in dev #15024

Merged
nsidnev merged 5 commits intomainfrom
nsidnev/fix-services-dev-url-injection
Feb 12, 2026
Merged

[services] inject service URLs into web services as local paths in dev #15024
nsidnev merged 5 commits intomainfrom
nsidnev/fix-services-dev-url-injection

Conversation

@nsidnev
Copy link
Copy Markdown
Member

@nsidnev nsidnev commented Feb 12, 2026

Fixes dev mode for services to match deployment behavior, i.e. env vars are injected into frontend frameworks with with relative paths instead of full URLs

Note

Low Risk Change

This PR refactors service URL generation to use a shared utility function and adds support for origin-based URLs in dev mode, with no security-sensitive changes.

  • Adds origin option to getServiceUrlEnvVars for dev mode URL generation
  • Removes duplicate generateServiceUrlEnvVars method from orchestrator in favor of shared utility
  • Adds comprehensive unit tests for origin mode behavior

Risk assessment for commit 4d8e0ea.

@nsidnev nsidnev requested a review from ricardo-agz February 12, 2026 05:50
@nsidnev nsidnev requested review from a team as code owners February 12, 2026 05:50
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 12, 2026

🦋 Changeset detected

Latest commit: 4d8e0ea

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

This PR includes changesets to release 15 packages
Name Type
@vercel/build-utils Minor
vercel Minor
@vercel/backends Patch
@vercel/client Patch
@vercel/elysia Patch
@vercel/express Patch
@vercel/fastify Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/h3 Patch
@vercel/hono Patch
@vercel/koa Patch
@vercel/nestjs Patch
@vercel/node Patch
@vercel/static-build Patch
@vercel/cervel 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 12, 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-2rn0fz2au.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-2rn0fz2au.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 12, 2026

🧪 Unit Test Strategy

Comparing: 9b20cb94d8e0ea (view diff)

Strategy: Code changed outside of a package - running all unit tests

⚠️ All unit tests will run because global code changes could impact all packages.

Affected packages - 40 (100%)
  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/config
  8. @vercel/detect-agent
  9. @vercel/edge
  10. @vercel/elysia
  11. @vercel/error-utils
  12. @vercel/express
  13. @vercel/fastify
  14. @vercel/firewall
  15. @vercel/frameworks
  16. @vercel/fs-detectors
  17. @vercel/functions
  18. @vercel/gatsby-plugin-vercel-builder
  19. @vercel/go
  20. @vercel/h3
  21. @vercel/hono
  22. @vercel/hydrogen
  23. @vercel/koa
  24. @vercel/nestjs
  25. @vercel/next
  26. @vercel/node
  27. @vercel/oidc
  28. @vercel/oidc-aws-credentials-provider
  29. @vercel/python
  30. @vercel/python-analysis
  31. @vercel/redwood
  32. @vercel/related-projects
  33. @vercel/remix-builder
  34. @vercel/routing-utils
  35. @vercel/ruby
  36. @vercel/rust
  37. @vercel/static-build
  38. @vercel/static-config
  39. examples
  40. vercel

Results

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

This comment is automatically generated based on the affected testing strategy

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
@nsidnev nsidnev merged commit 2b9147b into main Feb 12, 2026
256 of 258 checks passed
@nsidnev nsidnev deleted the nsidnev/fix-services-dev-url-injection branch February 12, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants