There is a web application that pulls various services. The addresses of these services are now written in the requireJS config. I would like to organize the automatic assembly of the project so that the addresses of the services depend on the type of environment. Those. we collect the production environment, all the services addresses from the production, we collect 15 test environments, all the services of the 15th test environments.

Roughly speaking, I would like to get the opportunity to do this conversion of the Web.config file when deploying an asp.net web application project.

Example: 15 test environment of the application should have the domain name web15.test.domen.ru and pull the services firstservice15.test.domen.ru and secondservice15.test.domen.ru

    1 answer 1

    You can also specify relative paths that are independent of the server.

    And if there is a minification of just one file, then there is nothing to configure at all.

    • Services are located on other domains, so it’s not possible to make requests on the relative path - flibustier