title: nextjs - next build with NODE_ENV=development
body: <p>I'd like to build my <code>nextjs</code> project as <strong>development</strong> mode.</p>
  
  <p>and I tried like it</p>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>{
    ...
    "scripts": {
      "dev": "next",
      "build:dev": "set NODE_ENV=development &amp; next build",
      "build:prod": "set NODE_ENV=production &amp; next build",
      "start:dev": "set NODE_ENV=development &amp; next start",
      "start:prod": "set NODE_ENV=production &amp; next start"
    }
    ...
  }
  </code></pre>
  
  <p><strong>next.config.js</strong></p>
  
  <pre><code>module.exports = withSass({
    env: {
      baseUrl: process.env.NODE_ENV === "development" ? "devServerURL": "prodServerURL"
    }
  });
  </code></pre>
  
  <p>but I couldn't achieve what I want.</p>
  
  <p>so, I tried with some change.</p>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>  "scripts": {
      "dev": "next",
      "build": "next build",
      "start:dev": "set NODE_ENV=development &amp; next start",
      "start:prod": "set NODE_ENV=production &amp; next start"
    }
  </code></pre>
  
  <p>but it also doesn't work.</p>
  
  <p>How can I build the <code>next</code> with development mode?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>My OS is Windows 10.</p>