Skip to content

fix: Apply serverUrl argument to baseURL before API initialization.#196

Open
codxbrexx wants to merge 1 commit intometacall:masterfrom
codxbrexx:fix-serverurl-flag
Open

fix: Apply serverUrl argument to baseURL before API initialization.#196
codxbrexx wants to merge 1 commit intometacall:masterfrom
codxbrexx:fix-serverurl-flag

Conversation

@codxbrexx
Copy link

Description

This PR fixes a bug where the --serverUrl (-u) CLI flag had no effect because it was being applied to the configuration after the api client was already instantiated.

Changes Made

Moved the configuration override block for --serverUrl to run immediately after startup but before API() is initialized. This enables developers to target their own local/remote FaaS instances without being restricted to only localhost:9000 via the --dev flag.

Fixes issue #195

Notes

  • As a side note: The explicit --dev flag might become redundant and could potentially be removed in the future now that --serverUrl works correctly.

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.

1 participant