This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
[nodejs] Add support for apiEndpoint
override
#2787
Labels
lang: nodejs
Issues specific to JavaScript or TypeScript.
Today, we allow developers to override the service endpoint using the
servicePath
variable in the service client constructor:In go/extensible-options-in-nodejs, we discuss changing this to
apiEndpoint
, as it's consistent with existing hand written libs, and feel that it's a little more obvious:Ideally, this wouldn't be a breaking change. In the generated code, it should look something like this:
If we're feeling 🌶 , we could also add the
apiEndpoint
getter to match the contents ofservicePath
.The text was updated successfully, but these errors were encountered: