2020-02-20 10:05:49 +01:00
|
|
|
# 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`:
|
|
|
|
|
|
|
|
```js
|
2020-02-24 13:16:30 +01:00
|
|
|
export async function unstable_getStaticPaths() {
|
2020-02-20 10:05:49 +01:00
|
|
|
return {
|
|
|
|
paths: Array<string | { params: { [key: string]: string } }>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|