Unverified Commit c52c0389 authored by Shu Uesugi's avatar Shu Uesugi Committed by GitHub

Add params to getStaticProps on err.sh (#10751)

* Add params to getStaticProps

* Update errors/invalid-getstaticprops-value.md
Co-Authored-By: 's avatarJJ Kasper <jj@jjsweb.site>
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 24345c9d
......@@ -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 }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment