title: Do I have to add .env file to versioning in react project?
body: <p>I have seen some medium blogs and StackOverflow answers that I shouldn't add <code>.env</code> file to the versioning.</p>
  <p>I quite understand why that is needed.</p>
  <p>But how about when dealing with a Reactjs project?</p>
  <p>Reactjs is for the frontend and all the environment variables are public even it is bundled for production and anyone can read it using a web browser.</p>
  <p>I have 2 env files, <code>.env.production</code> for production and <code>.env.staging</code> for staging. The environment variable values are put to the bundled version while building. These files are the same across all other team members.</p>
  <p>Actually there is no secret at all in these files.</p>
  <p>The question is:</p>
  <p><strong>Should I add these 2 files to versioning or do I have to distribute these files manually to other team members? Then why?</strong></p>