Buckets:
| title: '`getStaticPaths` Used on Non-Dynamic Page' | |
| ## Why This Error Occurred | |
| On a non-dynamic SSG page `getStaticPaths` was incorrectly exported as this can only be used on dynamic pages to return the paths to prerender. | |
| ## Possible Ways to Fix It | |
| Remove the `getStaticPaths` export on the non-dynamic page or rename the page to be a dynamic page. | |
| ## Useful Links | |
| - [Dynamic Routes Documentation](/docs/pages/building-your-application/routing/dynamic-routes) | |
| - [`getStaticPaths` Documentation](/docs/pages/building-your-application/routing/dynamic-routes) | |
Xet Storage Details
- Size:
- 571 Bytes
- Xet hash:
- e190991eda54433585e170f336994aae0724f1025d00e572cf349c65bd4ff41c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.