Are you reading my mind? Always when I have a project where I need a specific answer video too, I see you uploaded a video to it a few hours or days ago, which nails the topic directly and helps a lot! Thank you mate.
Amazing video! Nitro keeps blowing my mind on how simple it's to get it running and doing complex stuff. But a question not totally related to the video, but if you build a project like this for nitro (stand alone) and you want to use with an spa (without nuxt or even without vue), how can I get the types from the nitro project? Do I need to setup a monorepo?
@TheAlexLichter Is there a way to get all caches in a Nitro/Nuxt app? My use case is that I would like to build an admin interface, where you can invalidate caches :)
Is it possible to use a catch-all route (server/api/[...].ts) and a specific route rule in the config at the same time? I want to cache one particular route (/api/settings) 🤔
How to do cache with handler with auth ? if i use const session = await requireUserSession(event) from (Nuxt Auth Utils) inside, it doesn't work ( i use Nuxthub)
Greate Alexander! Thank you for the good tutorials. I have a question because i use cache in Nitro alot. How can i access a url parameter or slug inside a Info.server.vue component example. Because if i use useRoute() it is empty. I ask that because when i want to access something function from server i use Nitro and with this i can make a call directly from my server component.
Are you reading my mind? Always when I have a project where I need a specific answer video too, I see you uploaded a video to it a few hours or days ago, which nails the topic directly and helps a lot! Thank you mate.
What a timing! Really glad that my content was there right when you needed it 😁
I had no idea this was all doable within Nitro, going to set this up asap
Used Nitro caching the first time two years ago, was about time someone exposes that to the world :)
Very nice introduction to caching options. Thank you!
Thanks 🙏🏻
Thank you for your videos. They have been a tremendous help on a project I’m working on.
Happy they could help you 🙏🏻
Thanks for the video Alex!
You are welcome 👏🏻
This is super useful! Thanks
Glad you think so!
Wow this is amazing. I have used hono but unjs seems good too..
It really is! Give it a try 🔥
Всё очень понятно и классно рассказал. Спасибо друг
thanks
No problem!
I suppose if you're gonna keep bringing up stuff super relevant to me I'm just going to have to subscribe
I wouldn't mind that 😛
Thanks for the sub!
This is awesome
Right? 🙌
Amazing video! Nitro keeps blowing my mind on how simple it's to get it running and doing complex stuff.
But a question not totally related to the video, but if you build a project like this for nitro (stand alone) and you want to use with an spa (without nuxt or even without vue), how can I get the types from the nitro project? Do I need to setup a monorepo?
Thank you 🙏🏻
Yeah, that's a bit more tricky. I hope I can make a video on that soon
@TheAlexLichter Is there a way to get all caches in a Nitro/Nuxt app? My use case is that I would like to build an admin interface, where you can invalidate caches :)
You certainly can. NuxtHub is also doing that 👌🏻
Next goal rate limiter?
Is it possible to use a catch-all route (server/api/[...].ts) and a specific route rule in the config at the same time? I want to cache one particular route (/api/settings) 🤔
Then you'd need a dedicated /api/settings.ts file (which can do the same as the catch-all) - yes.
How to do cache with handler with auth ? if i use const session = await requireUserSession(event) from (Nuxt Auth Utils) inside, it doesn't work ( i use Nuxthub)
The cache is by-passed if we detect an authenticated request to avoid cross request state pollution.
@@atinux Thank you, so i can't cache ? ( with other way) , i shoud never cache auth request ?
No you should not cache Auth request. But you can cache functions inside using defineCachedFunction
@@atinux Thank you
Nothing to add here 🔥
❤❤❤🎉🎉🎉
Greate Alexander! Thank you for the good tutorials.
I have a question because i use cache in Nitro alot.
How can i access a url parameter or slug inside a Info.server.vue component example. Because if i use useRoute() it is empty.
I ask that because when i want to access something function from server i use Nitro and with this i can make a call directly from my server component.
(Answered in the more recent comment, sorry that I missed this one!)
Больная тема. Когда внезапно узнали что swr не работает в Netlify
That sounds like a bug! Is there an open nitro issue?
На vercel вроде порядок
@@paranoidPhantom ну так это одно, а это другое
@@paranoidPhantom на vercel не работает ISR.. Если добавить параметры в Get запрос - они игнорируются :(
Хорош 👍