Buckets:
| title: The provided export path doesn't match the page. | |
| ## Why This Error Occurred | |
| An `exportPathMap` path was improperly matched to a dynamically routed page. | |
| This would result in the page missing its URL parameters. | |
| ## Possible Ways to Fix It | |
| Change your `exportPathMap` function in `next.config.js` to have a path that matches the dynamically routed page. | |
| ```js filename="next.config.js" | |
| module.exports = { | |
| exportPathMap: function () { | |
| return { | |
| '/': { page: '/' }, | |
| // '/blog/nextjs': { page: '/blog/[post]/comment/[id]' }, // wrong | |
| '/blog/nextjs/comment/1': { page: '/blog/[post]/comment/[id]' }, // correct | |
| } | |
| }, | |
| } | |
| ``` | |
| ## Useful Links | |
| - [exportPathMap](/docs/pages/api-reference/config/next-config-js/exportPathMap) documentation | |
Xet Storage Details
- Size:
- 785 Bytes
- Xet hash:
- 44d1e5077913fafdd53b7b396fcb20d0ef7b1bcbd3aa7994d2cb0e5dff53663a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.