Nuxt 4.4's createUseFetch bakes base URL, auth headers, and 401 handling into one fully typed useFetch.
🔗 danholloran.me/posts/nuxt-c...
#nuxt #vue
danholloran.me
Nuxt createUseFetch: One Typed API Client Without the Wrapper Boilerplate
Nuxt 4.4 added createUseFetch and createUseAsyncData, factories that bake your base URL, auth headers, and error handling into a fully typed useFetch you can call anywhere.