The case I am trying to crack is the following. We are implementing a change on our website to host all content in the amazon cdn cloud. This means the url (src="c2runtime.js") of the c2runtime.js must change. Changing the url in the template is easy if it would need to point to one location. But in this case we host multiple games on our portal. And I would like to find a sollution that would prevent me from having to change the url manually each time I export.

The src in the html template would look something like this (i'm trying to set GAMENAME dynamically):<script src="s3.amazonaws.com/example.example.com/gamecontent/'+ GAMENAME +'/c2runtime.js"></script>

So far I have tried finding a way to change the script's src by making it a variable and constructing the link through