title: Development server compile issues and page routing broken in production builds - Next.js
body: <p>Hey all so I have an app that I am working on which I am creating using <code>Next.js</code>.  </p>
  
  <p>Almost every single time I make a change the server auto compiles with the new changes which are fine. However most of the time the pages just fail to render properly.  </p>
  
  <p>Sometimes it takes minutes to render them properly and I have to constantly restart the server manually multiple times just to get the pages to load properly. Does anyone know what could be causing this?  </p>
  
  <p>I don’t currently have a <code>next.config.js</code> file would I need to create one and add some settings to fix these problems?  </p>
  
  <p>And also the page routing does not work in production builds. The <code>index.js</code> page loads fine but none of the routes work when I click on a link they all end in a 404. Even if I type the URL in the browser.</p>