Netlify site name: https://lustrous-brigadeiros-6d6a38.netlify.app/
I have a Next.js site running with the above URL but each time I try to access a page that does not exist, I get back internal server error instead of the custom next.js 404 page. This is also the case for any page that uses getServerSideProps.
I downloaded the build folder and ran it locally using serve
and everything works but when I visit, say https://lustrous-brigadeiros-6d6a38.netlify.app/non-existing-page, I get internal server error
. What could be the problem? how do I even troubleshoot this? I haven’t experienced this with netlify before and the same code runs properly on vercel without any issues.