title: Next Js serialized as JSON ServerSideProps issue
body: <p>I can't seem to figure out the problem with this ServerSide code in NextJS.</p>
  <pre><code>export async function getServerSideProps(context) {
    const genre = context.query.genre;
  
    const request = await fetch(
      `https://api.themoviedb.org/3${
        requests[genre]?.url || requests.fetchTrending.url
      }`
    ).then((res)=&gt; res.json());
   
    return {
      props: {
        results: request.results,
      },
    };
  }
  </code></pre>
  <p>Error: Error serializing <code>.results</code> returned from <code>getServerSideProps</code> in &quot;/&quot;.
  Reason: <code>undefined</code> cannot be serialized as JSON. Please use <code>null</code> or omit this value.</p>