title: npm run build gives an Error : Image Optimization
body: <p>I am new to Next.js, I built a simple landing page and wanted to generate a static page using npm run build which I set in package.json to <code>&quot;build&quot;: &quot;next build &amp;&amp; next export&quot;</code>.
  But I get this Error:</p>
  <pre><code>Error: Image Optimization using Next.js' default loader is not compatible with `next export`.
    Possible solutions:
      - Use `next start` to run a server, which includes the Image Optimization API.
      - Use any provider which supports Image Optimization (like Vercel).
      - Configure a third-party loader in `next.config.js`.
      - Use the `loader` prop for `next/image`.
  </code></pre>
  <p>Can someone help me, I read the documentation and I created next.config.js in the root and pasted this:</p>
  <pre><code>module.exports = {
    images: {
      loader: 'imgix',
      path: '/images/',
    },
  }
  </code></pre>
  <p>I think that I need a path, but the thing is I am not using hosted images, I have an images folder in the the public folder.</p>
  <p>I know this is probably a stupid question, but I'm stuck.</p>