You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello !
I am using a pnpm monorepo with 2 packages, a Nuxt app and a Nitro app. How can I create a custom useFetch in my NuxtApp that get the routes from my Nitro app and not the internal Nuxt api routes ? Currently I create a hook "types:extend" in my Nitro app to export the route with the following code:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello !
I am using a pnpm monorepo with 2 packages, a Nuxt app and a Nitro app. How can I create a custom useFetch in my NuxtApp that get the routes from my Nitro app and not the internal Nuxt api routes ? Currently I create a hook "types:extend" in my Nitro app to export the route with the following code:
This works well to autocomplete the routes in my
useCustomFetch
but it doesn't type the returned data object.Thanks for your help :)
Beta Was this translation helpful? Give feedback.
All reactions