Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 414 Bytes

invalid-getstaticpaths-value.md

File metadata and controls

18 lines (12 loc) · 414 Bytes

Invalid unstable_getStaticPaths Return Value

Why This Error Occurred

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

Possible Ways to Fix It

Make sure to return the following shape from unstable_getStaticPaths:

export async function unstable_getStaticProps() {
  return {
    paths: Array<string | { params: { [key: string]: string } }>
  }
}