title: Nest JS .env file variables are undefined even though im using ConfigModule
body: <p>My variables are undefined but im using .env file in the root of the project that same way it is described in the documentation. Also adding condif imported from 'dotenv' works.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import { config } from 'dotenv';
  config();</code></pre>
  </div>
  </div>
  </p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import { Module } from '@nestjs/common';
  import { ConfigModule } from '@nestjs/config';
  import { AppController } from './app.controller';
  import { AppService } from './app.service';
  import { PodcastsModule } from './podcasts/podcasts.module';
  import { TypeOrmModule } from '@nestjs/typeorm';
  import { config } from 'dotenv';
  config();
  const { HOST, PORT, USER, PASSWORD, DATABASE } = process.env;
  @Module({
    imports: [
      ConfigModule.forRoot(),
      PodcastsModule,
      TypeOrmModule.forRoot({
        type: 'postgres',
        host: HOST,
        port: parseInt(PORT),
        username: USER,
        password: PASSWORD,
        database: DATABASE,
        autoLoadEntities: true,
        synchronize: true,
      }),
    ],
    controllers: [AppController],
    providers: [AppService],
  })
  export class AppModule {}</code></pre>
  </div>
  </div>
  </p>