<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">When using Next's new <code class="notranslate">src/pages</code> support through <code class="notranslate">now dev</code> (because I'm using <code class="notranslate">now secrets</code>) I'm getting a directory list view listing only the <em>package.json</em> instead of the <code class="notranslate">index</code> page.</p>
<h2 dir="auto">To Reproduce</h2>
<ol dir="auto">
<li>Create a new Next app <code class="notranslate">npx create-next-app now-dev-src-pages</code></li>
<li>Move the <code class="notranslate">pages</code> and the <code class="notranslate">components</code> directory to an <code class="notranslate">src</code> folder in the root folder</li>
<li>Launch dev mode using <code class="notranslate">now dev</code></li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">When visiting <code class="notranslate">http://localhost:3000</code> I should see the <code class="notranslate">src/pages/index.js</code> page contents.</p>
<h2 dir="auto">Screenshots</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/140042/66467493-d0bada80-ea84-11e9-9003-f9b9610df64d.png"><img src="https://user-images.githubusercontent.com/140042/66467493-d0bada80-ea84-11e9-9003-f9b9610df64d.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: [macOS]</li>
<li>Version of Next.js: 9.1.1</li>
</ul>
<h2 dir="auto">Additional info</h2>
<p dir="auto">Visiting <code class="notranslate">http://localhost:5000</code> instead, I get to see the actual expected behaviour.</p>
<p dir="auto">Running <code class="notranslate">now dev</code> while having everything the <code class="notranslate">src</code> directory does not work. <code class="notranslate">next build</code> still works.</p>
<p dir="auto">Next.js <code class="notranslate">v9.1.0</code>.<br>
No <code class="notranslate">now.json</code>.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40987398/66358765-5a15c400-e942-11e9-8ca1-e3a68b753f11.png"><img src="https://user-images.githubusercontent.com/40987398/66358765-5a15c400-e942-11e9-8ca1-e3a68b753f11.png" alt="Screenshot from 2019-10-07 20-37-27" style="max-width: 100%;"></a></p>
<p dir="auto">Thanks!</p>