Stig Vanbrabant
Stig Vanbrabant
NNuxt
Created by Stig Vanbrabant on 11/20/2024 in #❓・help
Error handling inside server routes located inside /server/routes
I'm trying to have it so when my server route fails it redirects to the full screen error page. I'm trying to do this by using the createError function inside the event handler. This isn't redirecting me to the fullscreen error page but instead it goes to the failing route on the client. So for example if my server route: /login/microsoft/callback fails it shows met the /login/microsoft/callback path inside the browser and will throw the vue router warning "No match found for location with path "/login/microsoft/callback". I feel like i'm missing something but i can't get my head around it. Any help or suggestions would be greatly appreciated.
16 replies