Support baseUrl
is function instead string
in ConnectTransportOptions
#678
Labels
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
As currently, my application have dynamic
baseUrl
based on few conditionals. Could we have support to passbaseUrl
as function instead plain text(I'm willing to contribute to connect-es source if this is possible to do that without any negative side effect)
Describe the solution you'd like
Let look example below
and able to override
baseUrl
in each request callPlease specify whether the request is for Connect for Web or Connect for Node.js.
Web
Describe alternatives you've considered
My workaround was to just force re-create transport and whole services in each request call. because it is hard to know when the baseUrl will be change
Additional context
N/A
The text was updated successfully, but these errors were encountered: