Need Help with Nuxt Middleware: Unexpected Behavior with navigateTo() Function
Hey everyone,
I tried to implement an authentication flow to my Nuxt app, but I got stuck at the authentication middleware. When I use "return navigateTo('/')", the code after the middleware still runs. Is it normal for the navigateTo function to behave this way in a middleware?
If I use "return '/'" instead, it works as expected, but I'm not sure if this is a reliable solution:
5 Replies
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
I'm on 3.4.1.
Just to confirm, this is executing on server side, not client side
Seems intermittent too
Yes, its executing on the server side.
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View