Update about 404 errors with now.json file

Tags: next

I have 404 errors on my blog, but

I was excited to launch my blog on next.js, I managed to solve almost the whole process and I was stuck in nonsense for too long.

I was reading on forums and in the documentation and other people had 404 failures when refreshing the page, but it only happens in development environment, not local.

These two issues described well what was happening to me:

Thanks to Anxo, my React teacher, He detected the bug. It's as simple as I didn't put the cleanUrls parameter in the now.json file:

"cleanUrls": true


I hope it helps you if the same happens to you.