Change the URL of ArcGIS API for JavaScript
To change the URL of ArcGIS API for JavaScript, complete the following steps:
- Open the env.js file.
- Search for the phrase //apiUrl='//js.arcgis.com/3.14';. This example is for ArcGIS API for JavaScript 3.14. If you have a different version, modify the phrase accordingly.
- Set the apiUrl variable to the preferred location of ArcGIS API for JavaScript. The variable can point to a privately or publicly hosted version.