Home
Support Forums

Nextjs markdown blog working locally but not on Netlify

Hello, been struggling for more than two hours so I decided to post!

I recently moved my website (https://www.thewandererdeveloper.com) from a SPA to a nextjs version. It was working all fine until I decided to add a markdown blog.

You can find the repo at GitHub - valerioscisci/portfolio-valerio

The problem I’m encountering is that locally the blog works no problem and it loads the markdown files but as soon as it goes live on Netlify I get an internal server error for the blog page!

Any idea of the reason?

Thanks!

Managed to fix it myself. I was using GetServerSideProps insted of GetStaticProps so I followed this repo to adapt my code accordingly!

1 Like