Would be great to configure api_url before worker starts #1235
-
ScopeAdds a new behavior Compatibility
Feature descriptionIn order to avoid regexps in every API mock and API_URL string usage in every API mock it would be great to have an option to configure alias for API path, instead of localhost, many servers are located in different domains than FE part of application. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, @rantiev. You can use a Base URL with your handlers at any time. This doesn't need any additional configuration on the library's side: repetitive URLs is a part of your logic, so it's your logic that can abstract them. Let me know if this suggestion suits your use case. If not, I'd like to hear more details and some code examples related to what you're trying to do. |
Beta Was this translation helpful? Give feedback.
Hey, @rantiev.
You can use a Base URL with your handlers at any time. This doesn't need any additional configuration on the library's side: repetitive URLs is a part of your logic, so it's your logic that can abstract them. Let me know if this suggestion suits your use case. If not, I'd like to hear more details and some code examples related to what you're trying to do.