I’m trying out Okteto for its preview environments and so far it has been awesome. Kudos to the team for building such an awesome product.
One hurdle I’m facing is having access to the endpoint URL while building the preview environment. I need this because our frontend app needs to know its own hostname, as well as the API’s hostname.
This URL will change from branch to branch, for example, in my latest branch, I have a URL that looks something like this:
I’m wondering how I can get ahold of this URL when building my preview environment so I can supply it in my docker-compose file as an environment variable.
Thanks in advance!