NuxtN
Nuxt2y ago
5 replies
Josepdal | Stakely

navigateTo() not working on server side

Hello, I am using navigateTo() inside useAsyncData() to perform a redirect on server side but it is not working properly, it only works on client side.
Instead of a redirect on the server, I am getting errors like [nitro] [unhandledRejection] TypeError: $setup.localePath is not a function but redirect should act before all those variables being called.
Am I missing something?
Was this page helpful?