title: not able to get .env variable value in react js
body: <p>when i tried to get the value from .env file, it says undefined, i have defined variable in .env <code>API_URL</code>, is there anything which i am missing in react js ? i am using dotenv npm, can anyone please help me how to resolve this issue ? here i have uploaded my code, any help will be really appreciated</p>
  <pre><code>const dotenv = require('dotenv');
  const fs = require('fs');
  alert(process.env.API_URL);
  </code></pre>
  <p>.env</p>
  <pre><code>API_URL=https://********/api/v1/
  </code></pre>