You attempted to export a page with getServerSideProps
which is not allowed. getServerSideProps
is meant for requesting up to date information on every request which means exporting it defeats the purpose of the method.
If you would like the page be static you can leverage the getStaticProps
method instead.