title: How to replace %PUBLIC_URL% in react app on an azure website
body: <p>I have a react app that works perfectly fine locally, when I deploy it to Azure, I have a few 404 errors, on the index.html</p>
  
  <p>All of them with the tag %PUBLIC_URL%</p>
  
  <p>According to the documentation, they will be replaced in the build process, but not sure how this is done, so that when deployed, the correct urls are put in place</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!doctype html&gt;
  &lt;html lang="en" dir="ltr"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"&gt;
      &lt;meta name="theme-color" content="#000000"&gt;
      &lt;!--
            manifest.json provides metadata used when your web app is added to the
            homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
      --&gt;
      &lt;link rel="manifest" href="%PUBLIC_URL%/manifest.json"&gt;
      &lt;link rel="icon" type="image/png" sizes="32x32" href="%PUBLIC_URL%/favicon.png"&gt;
      &lt;link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700" rel="stylesheet" async&gt;
      &lt;link async rel="stylesheet" href="%PUBLIC_URL%/css/ionicons.min.css"&gt;
      &lt;link rel="stylesheet" href="https://unpkg.com/react-instantsearch-theme-algolia@4.0.0/style.min.css"&gt;
      &lt;link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css"
           integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ=="
           crossorigin="" async/&gt;
      &lt;!--
            Notice the use of %PUBLIC_URL% in the tags above.
            It will be replaced with the URL of the `public` folder during the build.
            Only files inside the `public` folder can be referenced from the HTML.
  
            Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
            work correctly both with client-side routing and a non-root public URL.
            Learn how to configure a non-root public URL by running `npm run build`.
      --&gt;
      &lt;title&gt;Isomorphic&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;noscript&gt;
        You need to enable JavaScript to run this app.
      &lt;/noscript&gt;
      &lt;div id="root"&gt;&lt;/div&gt;
      &lt;!--
            This HTML file is a template.
            If you open it directly in the browser, you will see an empty page.
  
            You can add webfonts, meta tags, or analytics to this file.
            The build step will place the bundled scripts into the &lt;body&gt; tag.
  
            To begin the development, run `npm start` or `yarn start`.
            To create a production bundle, use `npm run build` or `yarn build`.
      --&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>