title: Next.js getServerSideProps is always undefined
body: <p>I've been starting with a new Next application and going with functional components instead of class-based wherever possible. Following the <a href="https://nextjs.org/docs/basic-features/data-fetching#typescript-use-getserversideprops" rel="nofollow noreferrer">documentation</a>, I've set up the following with no luck:</p>
  <pre><code>import React from 'react';
  import { GetServerSideProps, InferGetServerSidePropsType } from 'next';
  
  export const getServerSideProps: GetServerSideProps = async () =&gt; {
      return {
          props: {
              results: [1,2,3],
          },
      };
  };
  
  function Page({results}: InferGetServerSidePropsType&lt;typeof getServerSideProps&gt;) {
      console.log(results) // undefined
      return (
          &lt;div className=&quot;app__page header&quot;&gt;page here&lt;/div&gt;
      )
  }
  
  export default Page;
  </code></pre>
  <p>Regardless of what I've tried I can't get any data back from <code>getServerSideProps</code>, any help would be greatly appreciated!</p>