AnsweredAssumed Answered

apiUrl in env.js of WAB (DE) apps?

Question asked by agelfert on Feb 26, 2020
Latest reply on Feb 27, 2020 by agelfert

As I'm building various app's in Web AppBuilder (DE) and deploying them on our web server (Web Adaptor machine), I notice that some of them require a tweak in env.js where no apiUrl is set. In my case, adding the line below has always worked.

apiUrl = '',

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 doesn't need this?  Can anyone shine some light on this for me?