nitrojs / nitro

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

allow ignoring errors by status code when prerendering #1569

Open danielroe opened 1 year ago

danielroe commented 1 year 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 9 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 9 months ago

PR welcome to add option 👍🏼

remiconnesson commented 5 months 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 ?