Consider environment
With this MR we request and use the current domain the TextAPI is served at instead of hard-coding it.
Dear Gitlab Users, for our upcoming upgrade to Gitlab v19, Gitlab will be unavailable on Thursday, 25.06.2026 from 5:00 pm to approximately 7:00 pm. Note that with v19, certain breaking changes will be introduced.
With this MR we request and use the current domain the TextAPI is served at instead of hard-coding it.