I’m deploying a Nuxt 3 application to Netlify. It has pregenerated pages as well as server routes, that gets deployed as functions. I’m using the netlify
nitro build preset.
Nuxt generates a 404.html
, which i want to redirect to on 404’s.
Following to the docs i added this at the end of my _redirects
file:
/* /404 404
But this results in the server-routes not working anymore and also throwing a 404.
The docs page states:
You can set up a custom 404 page for all paths that don’t resolve to a static file.
Well now, PLEASE don’t tell me i can’t have a custom 404 page and server routes working together!