<p dir="auto">checkout with-amp expanse, install deps with yarn, yarn run build produces an error:</p>
<p dir="auto"><code class="notranslate">&gt; Failed to build on /var/folders/96/_4p69_wn5jj32w5tl1prsd640000gn/T/1c702ef9-d328-4aad-a4be-713d02183e83 { Error: ./pages/_document.js?entry Module not found: Error: Can't resolve 'react-dom/lib/ReactInjection' in '/Users/philipheinser/Downloads/next.js-master/examples/with-amp/pages' resolve 'react-dom/lib/ReactInjection' in '/Users/philipheinser/Downloads/next.js-master/examples/with-amp/pages' Parsed request is a module using description file: /Users/philipheinser/Downloads/next.js-master/examples/with-amp/package.json (relative path: ./pages) Field 'browser' doesn't contain a valid alias configuration aliased with mapping 'react-dom': '/Users/philipheinser/Downloads/next.js-master/examples/with-amp/node_modules/react-dom/dist/react-dom.min.js' to '/Users/philipheinser/Downloads/next.js-master/examples/with-amp/node_modules/react-dom/dist/react-dom.min.js/lib/ReactInjection'</code></p>
<p dir="auto">The prototype I built following the tutorial on learnnextjs.com needs a lot of optimization on its final build. When run past <a href="https://developers.google.com/speed/pagespeed/insights" rel="nofollow">Google PageSpeed Insights</a>, it gets scored down on the following parameters:</p>
<ul dir="auto">
<li>
<p dir="auto">Enable compression</p>
</li>
<li>
<p dir="auto">Reduce server response time</p>
</li>
</ul>
<p dir="auto">According to Google, the following scripts are uncompressed:</p>
<ul dir="auto">
<li>
<p dir="auto">/_next/7edb944ce4757e3fa4d6f778f42d60f1/app.js</p>
</li>
<li>
<p dir="auto">/_next/97e680aa-2946-4f9e-ad5b-8f938979a15c/page/_error</p>
</li>
<li>
<p dir="auto">/_next/97e680aa-2946-4f9e-ad5b-8f938979a15c/page/(index)</p>
</li>
<li>
<p dir="auto">/(index)</p>
</li>
</ul>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">All bundled files served to the client should be minified and compressed.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Bundled files being served to the client are not being minified or compressed.</p>