In ssr and target = static is it possible to catch a 404 error before it happens?
Hello people, for context i have a static generate sites with ssr enabled also i have an error.vue in the root of the project, Sadly the site is uploaded using nginx and i cannot change the config, if a user navigates to a link which doesnt exists for example /derp, could it be possible to catch the error before it happens and redirect him to the /error page instead of nginx error page?
At the moment i tried using hooks in the config
Which makes the prerenderer fail ( Error: [500] )
Tried using the error handler plugin
And ye... Is it possible to do something like that?
0 Replies