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='//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.
  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.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.