title: How to fix custom 404 page not working in NextJS
body: <p>I got stuck with custom 404 error page. I have created 404.js in pages folder following instruction in NextJS docs but it still uses default page in NextJS. Does anyone know this issue? Thank in advance.</p>
  <p>Dependency:</p>
  <p>&quot;next&quot;: &quot;9.2.2&quot;</p>
  <p>next.config.js just has env config.</p>