<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: apiUrl in env.js of WAB (DE) apps? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/apiurl-in-env-js-of-wab-de-apps/m-p/785556#M3556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Arne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The apiUrl gets set by WAB Dev in the NodeJS code. this is not something that you would normally have to manipulate unless you are wanting to use a api version that is different from the one that your current WAB Dev was designed for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2020 13:26:50 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2020-02-27T13:26:50Z</dc:date>
    <item>
      <title>apiUrl in env.js of WAB (DE) apps?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/apiurl-in-env-js-of-wab-de-apps/m-p/785555#M3555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I'm building various app's in Web AppBuilder (DE) and deploying them&amp;nbsp;on our web server (Web Adaptor machine), I notice that some&amp;nbsp;of them require a tweak in env.js where no apiUrl is set. In my&amp;nbsp;case, adding the line below has always worked.&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;apiUrl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'http://js.arcgis.com/3.31/'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I'm not sure how env.js file is generated or updated by WAB throughout development. My suspicion is that as you add custom developed widget (either home grown or sources elsewhere), the need for this arises whereas something straight out of WAB&amp;nbsp;doesn't need this?&amp;nbsp; Can anyone shine some light on this for me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 22:49:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/apiurl-in-env-js-of-wab-de-apps/m-p/785555#M3555</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2020-02-26T22:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: apiUrl in env.js of WAB (DE) apps?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/apiurl-in-env-js-of-wab-de-apps/m-p/785556#M3556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Arne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The apiUrl gets set by WAB Dev in the NodeJS code. this is not something that you would normally have to manipulate unless you are wanting to use a api version that is different from the one that your current WAB Dev was designed for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 13:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/apiurl-in-env-js-of-wab-de-apps/m-p/785556#M3556</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-02-27T13:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: apiUrl in env.js of WAB (DE) apps?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/apiurl-in-env-js-of-wab-de-apps/m-p/785557#M3557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This line exists but is commented out while the app is accessed through the WEB DE page. When you download the app, one of the things that the process does is uncomment that line. How are you deploying your apps? Are you using the download button or just copying the files from the server directory? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 14:43:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/apiurl-in-env-js-of-wab-de-apps/m-p/785557#M3557</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2020-02-27T14:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: apiUrl in env.js of WAB (DE) apps?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/apiurl-in-env-js-of-wab-de-apps/m-p/785558#M3558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken, that must be it. Because I've done both - the export/zip from within WAB and then just straight folder zip and copy/paste. Didn't realize there was this going on behind the scenes. Great information. I'm trying to formulate some development best practices for our team as it pertains to WAB, and this&amp;nbsp;needs to go in there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 21:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/apiurl-in-env-js-of-wab-de-apps/m-p/785558#M3558</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2020-02-27T21:36:47Z</dc:date>
    </item>
  </channel>
</rss>

