Thank you so much for providing such amazing content ❤. The developer experience of Nuxt is unparalleled. Every aspect of the framework's API is engineered with great care, and even better, these improvements come with free performance boosts. A huge thank you to Daniel and all other contributors for creating such an incredible framework. Please keep the regular uploads coming 🤘.
Sure thing! It is documented here and should work - github.com/unjs/ofetch?tab=readme-ov-file#%EF%B8%8F-interceptors but I will dedicate a video to it 👍
Some times i just hate those auto load magic because as rule it completely different between frameworks and so you always have to learn all those things from scratch.
Are you planning to use the object syntax now? 👀
Thank you so much for providing such amazing content ❤.
The developer experience of Nuxt is unparalleled. Every aspect of the framework's API is engineered with great care, and even better, these improvements come with free performance boosts.
A huge thank you to Daniel and all other contributors for creating such an incredible framework.
Please keep the regular uploads coming 🤘.
Thank you so much for the kind words 🙏🏻
Really delighted that you enjoy using Nuxt and that the content is helpful 🔥
not only well versed and smart, but also handsome!
Thank you 🙏
Thanks mate for your great job, keep it up
Thanks, will do! 🙌
Nuxt is the GOAT ♥
💚
Хорош 👍
Твои видео уже нужно в документацию Nuxt включать.
Why should I define some functions as a plugin (like the $api) instead of importing it explicitly?
You can also import them explicitly but the initializing (eg passing runtime config values) might be more tedious.
Is it a good practice if i were to intiate db connection via plugin server so that it can be used throughout the apps ? Thanks
I’d do this in a nitro plugin ☺️
@@TheAlexLichter can we do the object syntax for nitro plugin also as in nuxt plugin ?
Please show nuxt api interseptor (look like vue axios interseptor)
Sure thing! It is documented here and should work - github.com/unjs/ofetch?tab=readme-ov-file#%EF%B8%8F-interceptors but I will dedicate a video to it 👍
my $api isn't being typed by Nuxt, so while it IS present on the NuxtApp it isn't including in the type definition and appears as "unknown"
Even after restarting the dev server? 👀
Yes. Even after a restart, and I’ve also extended the interface in an index.d.ts file as per the website without success.
@wolfphantom do you have a reproduction to take a look at? 😊
could you speak about lots of visits and how to deploy the thing without the corps ? thks you if you do
What do you mean with “without the corps”? 👀
Some times i just hate those auto load magic because as rule it completely different between frameworks and so you always have to learn all those things from scratch.
Luckily you can also fully opt out of them 👌🏻
Great video again! :)
Can you make a video comparing building a package vs a Nuxt module
Thanks!
You mean building an NPM package vs. Nuxt module?
Would a NitroPlugin be similar?
Actually not! Nitro plugins are unrelated to Nuxt and run only on the server. It is quite different 😁
what if i want to use fetch raw?
Not sure I understand the question. $fetch.raw should work fine ☺️
Thank you
You are welcome! 🙌
2:57 OOP