title: How to setup local environment to run on https
body: <p>I am trying to run my React application via https local. I have followed the steps of this <a href="https://web.dev/how-to-use-local-https/" rel="nofollow noreferrer">tutorial</a>, have installed <code>mkcert</code> correctly and the root of my project currently looks like this:</p>
  <pre><code>|-- my-react-app
      |-- package.json
      |-- localhost.pem
      |-- localhost-key.pem
      |--... 
  </code></pre>
  <p>And my package.json file looks like this:</p>
  <pre><code>&quot;scripts&quot;: {
      &quot;start&quot;: &quot;HTTPS=true SSL_CRT_FILE=localhost.pem SSL_KEY_FILE=localhost-key.pem react-scripts start&quot;,
      ...
  </code></pre>
  <p>Yet when I run npm start I receive this error:</p>
  <p><code>'HTTPS' is not recognized as an internal or external command, operable program or batch file.</code></p>
  <p>I also tried creating a <code>.env</code> file in the root and adding the variables like this:</p>
  <pre><code>HTTPS=true
  SSL_CERT_FILE=localhost.pem
  SSL_KEY_FILE=localhost-key.pem
  </code></pre>
  <p>However when I run the app this way I receive a warning to say my connection is not secure.</p>
  <p>I have spent time googling the errors and so far still unable to find a solution.</p>