Change OTA Link using build flags

Hi i want to change link providing OTA upgrade files but iam only able to do it using User_config.h

i tried:

and because i need to use escaping on f.e. ip addresses to be accepted by Platformio and compile i tried even this:


But nothing works. Could someone help me how to do it using buld flags in my env file?