Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 533 Bytes

invalid-getserversideprops-value.mdx

File metadata and controls

23 lines (16 loc) · 533 Bytes
title
Invalid `getServerSideProps` Return Value

Why This Error Occurred

In one of the page's getServerSideProps the return value had the incorrect shape.

Possible Ways to Fix It

Make sure to return the following shape from getServerSideProps:

export async function getServerSideProps(ctx: GetServerSidePropsContext) {
  return {
    props: { [key: string]: any }
  }
}

Useful Links