Change the URL of ArcGIS API for JavaScript

To change the URL of ArcGIS API for JavaScript, complete the following steps:

  1. Open the env.js file.
  2. Search for the phrase //apiUrl='//';. This example is for ArcGIS API for JavaScript 3.14. If you have a different version, modify the phrase accordingly.
  3. Set the apiUrl variable to the preferred location of ArcGIS API for JavaScript. The variable can point to a privately or publicly hosted version.