diff --git a/errors/invalid-getstaticprops-value.md b/errors/invalid-getstaticprops-value.md index ace1cdceb52bc95..ccbfd7232d07728 100644 --- a/errors/invalid-getstaticprops-value.md +++ b/errors/invalid-getstaticprops-value.md @@ -9,7 +9,11 @@ In one of the page's `getStaticProps` the return value had the incorrect shape. Make sure to return the following shape from `getStaticProps`: ```js -export async function getStaticProps() { +export async function getStaticProps(ctx: { + params?: ParsedUrlQuery + preview?: boolean + previewData?: any +}) { return { props: { [key: string]: any } }