title: nestjs configuration with dotenv
body: <p>Referring to <a href="https://docs.nestjs.com/techniques/configuration" rel="nofollow noreferrer">official NestJS documentation</a>, it is recommended to use <code>ConfigService</code> in order to use environment variables.</p>
  
  <p>So in the code, we access all vars defined in an <code>.env</code> file with something like:</p>
  
  <pre><code>config.get('PORT')
  </code></pre>
  
  <p>But it is not recommended to use <code>.env</code> in production environment. So how to deploy in that way?</p>
  
  <p>Why not just use the standard method with <code>dotenv</code> and <code>process.env.PORT</code>?</p>