`getServerSideProps` fails silently and returns 404
I’m currently tinkering with something and noticed that when an exception is thrown in
getServerSideProps
, the page just returns a 404 with nothing logged in either console. Is there a way to make it not fail silently and log the error? (I’ve tried putting it in a try catch block)2 Replies
getserversideprops should return a 500 if there is an uncaught error
it will never return a page on an uncaught error because you're SSRing and throwing an error before anything can actually render
but ive never seen it return a 404
Im fiddling with a monorepo setup trying to get Prisma to work with a custom output dir. It’s failing to start up which is probably what’s causing this