Skip to content

feat: select tunnel config endpoint by env#59

Open
rahulmishra-lt wants to merge 1 commit into
LambdaTest:masterfrom
rahulmishra-lt:feat/stage-env-config-endpoint
Open

feat: select tunnel config endpoint by env#59
rahulmishra-lt wants to merge 1 commit into
LambdaTest:masterfrom
rahulmishra-lt:feat/stage-env-config-endpoint

Conversation

@rahulmishra-lt

Copy link
Copy Markdown

What

Adds environment support to the tunnel client. start() now selects the config endpoint based on the env option, so credential verification (AuthUrl) and binary resolution (binaryLinks) resolve to the matching environment instead of always using prod.

How

lib/config.js picks the config URL from options.env / options.environment / options.e. Prod remains the default, so behaviour is unchanged for all existing callers.

Compatibility

Opt-in and backward compatible — callers that don't pass env (or pass env: 'prod') keep the current behaviour.

Resolve the config endpoint (and thus AuthUrl and binaryLinks) from the
env option so stage runs authenticate and download against stage. Prod
remains the default, preserving current behavior.
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.

2 participants