async onResponseError({ response }) { if (response.status === 401) { const nuxtApp = useNuxtApp() console.log("401") // gets printed await callWithNuxt(nuxtApp, navigateTo, [ "/user/login", { replace: true, redirectCode: 401 }, ]) }}
useNuxtApp().$i18n.locale.value
hooks: { async 'nitro:config'(nitroConfig) { const routesToGenerate = [] routesToGenerate.push('/some/route') nitroConfig.prerender.routes.push(...routesToGenerate) }}
@nuxtjs/partytown
type="text/partytown"