unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.55k stars 480 forks source link

allow ignoring errors by status code when prerendering #1569

Open danielroe opened 11 months ago

danielroe commented 11 months ago

We've already discussed possibly ignoring redirect 'errors' when prerendering. Some users might also want to ignore 404 errors or other status codes, while keeping failOnError enabled.

See nuxt/nuxt#22536

FreekVR commented 5 months ago

Hi, just wondering if this would make it into any roadmap?

We've disabled errors because we want to ignore 404s but this inadvertently deployed a version of the website that contained other errors. So it'd be great if we can filter these easily.

pi0 commented 5 months ago

PR welcome to add option 👍🏼

remiconnesson commented 1 month ago

PR welcome to add option 👍🏼

I may be interested in tackling this, can I ask you for some pointers on which files I may start looking into ?