title: 404 page not working on Nextjs Static Generated File
body: <p>Im having trouble to show 404 custom page i made when i generate static generated file (<code>next build &amp;&amp; next export</code>)</p>
  <p>When im navigating to non existing page (&quot;<code>/&lt;any-non-existing</code>&quot;), it always redirects to homepage (&quot;<code>/</code>&quot;). My expectation is that it will automatically redirect to (&quot;<code>/404</code>&quot;).</p>
  <p>However, if im manually navigating to (&quot;<code>/404</code>&quot;) page, the page works perfectly fine.</p>
  <p>Deployed to S3 with Cloudfront
  Enabled next.config.js <code>{ trailingSlash: true }</code></p>