title: Next.js ignoring NODE_ENV=development
body: <p>In my <code>package.json</code>, I have a <code>build</code> script set to build my next project as follows:</p>
  <p><code>&quot;build&quot;: &quot;echo \&quot;$NODE_ENV\&quot; &amp;&amp; NODE_ENV=$NODE_ENV next build &amp;&amp; npm run build-server&quot;,</code></p>
  <p>The output from the command that I get is:</p>
  <pre><code>&gt; admin-ui@1.0.0 build /usr/src/admin-ui
  &gt; echo &quot;$NODE_ENV&quot; &amp;&amp; NODE_ENV=$NODE_ENV next build &amp;&amp; npm run build-server
  
  development
  Creating an optimized production build ...
  </code></pre>
  <p>The <code>echo</code> outputs <code>development</code> as the value for <code>$NODE_ENV</code>. However, I cannot get that passed to next. It just ignores it.</p>
  <p>Using next.js version <code>9.0.5</code>.</p>