<h1 dir="auto">Examples bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">When using a complete copy of with-ant-design-less sample, styles are loaded after an initial page render when nextjs is built to production</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p>
<ol dir="auto">
<li>Go to <a href="https://github.com/zeit/next.js/tree/canary/examples/with-ant-design-less">https://github.com/zeit/next.js/tree/canary/examples/with-ant-design-less</a></li>
<li>Clone the repository</li>
<li>Install dependencies and build in production mode</li>
<li>Start in production mode</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Styles should be loaded before initial render</p>
<h2 dir="auto">Screenshots</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23209488/65394427-38d3a600-dd8e-11e9-8867-960666893757.gif"><img src="https://user-images.githubusercontent.com/23209488/65394427-38d3a600-dd8e-11e9-8867-960666893757.gif" alt="65225171-edd33d80-dac4-11e9-84d2-9d5f0fb7903d" data-animated-image="" style="max-width: 100%;"></a></p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: macOS</li>
<li>Browser (if applies) chrome</li>
<li>Version of Next.js: latest</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">I tried to deploy using my nextjs app using now and same issue is happening.</p>
<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">A mailto link should open the email client of the user, regardless if the recipient is present or not.</p>
<h2 dir="auto">Current Behavior</h2>


<p dir="auto">When the recipient is missing, isLocal in  returns true. Leading to 'Cannot read property replace of null' further down the road.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>


<ol dir="auto">
<li><a href="mailto:jonas@example.com">mailto:jonas@example.com</a>?subject=Next.js%20rocks works as intended</li>
<li>mailto:?subject=Next.js%20rocks does not work</li>
<li></li>
<li></li>
</ol>
<h2 dir="auto">Context</h2>


<p dir="auto">One of the ways our users can recommend an article to a friend, is to email a link. This is handled by providing a mailto link without recipient, but with information in the subject and body field. Then the users only need to fill in a recipient, and the mail will be sent from his own email client.</p>
<p dir="auto">This issue is of course avoidable by using a form, but the project owner is currently insisting on keeping this how it is today. So we were hoping this could be fixed.</p>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.0.3</td>
</tr>
<tr>
<td>node</td>
<td>6.11.3</td>
</tr>
<tr>
<td>OS</td>
<td>macOS 10.13</td>
</tr>
<tr>
<td>browser</td>
<td>Safari, Chrome</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table>