`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
cje17mo 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
Ramazan17mo 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
More Posts
createProxyHelpers typinghello all, in the project setup we get the context options and createContext function, I am wonderinSlow cold start times in Vercel with my T3 App APII'm trying to debug some really bad cold start times with my web app's api. The UI loads up really qIs there any guide or tips for migrating a Blitzjs app?Hey there 👋 I have a PWA Blitz.js app that would like to migrate to the t3 stack. I would like toHow to use getInitialProps within _app.tsx?I'm trying to get the current `color-scheme` which is saved in a cookie into the app page. Is there Options of Video Chat APIs to use inside my NextJS appHey, I'm building an app which I want to include video chat, I don't think its very feasible to builZod - how to define schema for number that can be one of few valuesHow can I define a schema that would accept a number which would be one of these values 10,25,50,100react-hook-form with formatted numeric valuesI have an "amount" field which is numeric in my `react-hook-form`. Since the amounts can grow up to How well can I rely on Tailwinds ability to know what classes to include in the CSS?I'm new to Tailwind and I'm trying to understand how it works under the hood. More specifically howtips on getting file sizes down in a nextjs 13 project?things are getting preeeeetttyyyyy heftyyyy in my big project ```json // package.json "dependenciWhat's everyone using for implementing google sso?We have a vite app where we manage user sessions in a django backend - need to replace react-google-