Use locally hosted jsapi instead of CDN

536
1
Jump to solution
03-18-2022 02:16 AM
Ranga_Tolapi
Occasional Contributor III

How to make ArcGIS Experience Builder Developer Edition v1.7 to use locally hosted JSAPI v4.22 instead of CDN?

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
SumitZarkarCT
New Contributor III

@Ranga_Tolapi 

There are four places you will need to update the variable arcgisJsApiUrl with your local JSAPI host URL. For example, replace var arcgisJsApiUrl = 'https://js.arcgis.com/4.22/' with var arcgisJsApiUrl = 'https://exb.esri.com/4.22/' in each of the files below:

  • <install folder>/client/dist/index.html
  • <install folder>/client/dist/experience/index.html
  • <install folder>/client/dist/template/index.html
  • <install folder>/client/dist/builder/index.html

Refrence - https://developers.arcgis.com/experience-builder/guide/install-guide/#offline-install 

 

 

View solution in original post

1 Reply
SumitZarkarCT
New Contributor III

@Ranga_Tolapi 

There are four places you will need to update the variable arcgisJsApiUrl with your local JSAPI host URL. For example, replace var arcgisJsApiUrl = 'https://js.arcgis.com/4.22/' with var arcgisJsApiUrl = 'https://exb.esri.com/4.22/' in each of the files below:

  • <install folder>/client/dist/index.html
  • <install folder>/client/dist/experience/index.html
  • <install folder>/client/dist/template/index.html
  • <install folder>/client/dist/builder/index.html

Refrence - https://developers.arcgis.com/experience-builder/guide/install-guide/#offline-install