DEV Community

loading...

Discussion on: Creating a Markdown Blog with Next.js

Collapse
kendallstrautman profile image
Kendall Strautman Author

You probably need to use getStaticPaths where you are implementing dynamic routes. (exportPathMap is now discouraged). Or there may be something funky going on with the parameters you are passing the routes. I would also look into the build command you are using for production. Just recently I changed from using next export to just next build now that you can statically export at the page level with getStaticProps.