Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 346 Bytes

invalid-getstaticprops-value.md

File metadata and controls

17 lines (12 loc) · 346 Bytes

Invalid getStaticProps Return Value

Why This Error Occurred

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

Possible Ways to Fix It

Make sure to return the following shape from getStaticProps:

export async function getStaticProps() {
  return {
    props: { [key: string]: any }
  }
}