`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
cje
cje2y ago
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
Ramazan
Ramazan2y ago
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
Want results from more Discord servers?
Add your server