title: Configuring settings in javascript in Azure Web App / built in Azure DevOps
body: <p>Say I have a js (plain, vanilla non-node js) file, that includes a setting at the top like this:</p>
  <pre><code>const API_ENDPOINT = 'https://somedomain-dev.azurewebsites.net/api/v1/';
  </code></pre>
  <p>When running in production, I need this value instead:</p>
  <pre><code>const API_ENDPOINT = 'https://somedomain-prod.azurewebsites.net/api/v1/';
  </code></pre>
  <p>I can think of two approaches, but don't know if any of them would work and how:</p>
  <ol>
  <li>Configure this in Azure Web App =&gt; Configuration. This would be best as all config would be centralized.</li>
  <li>Transform the file during the build/release process in Azure Devops. (not sure how)</li>
  </ol>
  <p>What is a way to accomplish this?</p>