title: nuxt.js - unable to define host and port
body: <p>nuxt.js always defaults to <code>localhost</code> despite host being defined as <code>frontend.gradez.loc </code> in <code>nuxt.config.js</code></p>
  <p>Contents of <code>nuxt.config.js</code>:</p>
  <pre><code>server: {
    host: 'frontend.gradez.loc',
    port: 3000
  },
  </code></pre>
  <p>Contents of <code>package.json</code>:</p>
  <pre><code>&quot;config&quot;: {
    &quot;nuxt&quot;: {
      &quot;host&quot;: &quot;frontend.gradez.loc&quot;,
      &quot;port&quot;: &quot;3000&quot;
    }
  }
  </code></pre>
  <p><code>nuxt</code> launch script as <code>dev</code>:</p>
  <pre><code>&quot;dev&quot;: &quot;nuxt --hostname frontend.gradez.loc --port 3000&quot;,
  </code></pre>
  <p>For some odd reason when starting the development script it always defaults to: <code>Listening on: http://localhost:3000/</code></p>
  <p>I tried to do exactly the same on react and the only thing I had to do was create a <code>.env</code> file and inside it I added <code>host=frontend.gradez.loc</code> and it worked just like that.</p>