title: How to set custom path for dotenv in nuxt
body: <p>I have the following <code>nuxt.config.js</code>, where in the <code>srcDir</code> is pointing to &quot;main-app&quot; and I have placed the .env outside of it. So in the <code>nuxt.config.js</code>, how can set the custom path in line 1</p>
  <pre><code>require('dotenv').config({ path: '../.env' })
  </code></pre>
  <p>such that my process.env works
  <a href="https://i.stack.imgur.com/kXwmr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kXwmr.png" alt="enter image description here" /></a></p>
  <p>Also the buildModules in nuxt.config.js is as follows</p>
  <pre><code>buildModules: [&quot;@nuxtjs/fontawesome&quot;, &quot;@nuxtjs/dotenv&quot;],
  </code></pre>