[services] inject service URLs into web services as local paths in dev #15024
Merged
[services] inject service URLs into web services as local paths in dev #15024
Conversation
🦋 Changeset detectedLatest commit: 4d8e0ea The changes in this PR will be included in the next version bump. This PR includes changesets to release 15 packages
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 |
Contributor
📦 CLI Tarball ReadyThe Vercel CLI tarball for this PR is now available! Quick TestYou can test this PR's CLI directly by running: npx https://vercel-2rn0fz2au.vercel.sh/tarballs/vercel.tgz --helpUse in vercel.jsonTo use this CLI version in your project builds, add to your {
"build": {
"env": {
"VERCEL_CLI_VERSION": "vercel@https://vercel-2rn0fz2au.vercel.sh/tarballs/vercel.tgz"
}
}
} |
Contributor
🧪 Unit Test StrategyComparing: Strategy: Code changed outside of a package - running all unit tests Affected packages - 40 (100%)
Results
This comment is automatically generated based on the affected testing strategy |
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
ricardo-agz
approved these changes
Feb 12, 2026
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.
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.
originoption togetServiceUrlEnvVarsfor dev mode URL generationgenerateServiceUrlEnvVarsmethod from orchestrator in favor of shared utilityRisk assessment for commit 4d8e0ea.