Skip to content

Commit

Permalink
Add params to getStaticProps
Browse files Browse the repository at this point in the history
  • Loading branch information
chibicode committed Feb 29, 2020
1 parent 5a82812 commit 750ce92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors/invalid-getstaticprops-value.md
Expand Up @@ -9,7 +9,7 @@ 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({ params }) {
return {
props: { [key: string]: any }
}
Expand Down

0 comments on commit 750ce92

Please sign in to comment.