Sam K
Fetch Server Help!!
hey, you can use dynamic params in the server routes https://nuxt.com/docs/guide/directory-structure/server#route-parameters
4 replies
Read files in API route, fails on Vercel
is it normal ssr or vercel edge? In my case whenever I need to read files in Nuxt/Nitro I use
useStorage
as it provides better typed and also to not enter the loophole to where are my files 😂.
this is nito's docs on useStorage
https://nitro.unjs.io/guide/assets5 replies
How to manage 'remote' localization
hey, take a look at in-component translations
https://i18n.nuxtjs.org/docs/guide/per-component-translations
5 replies
How do I manipulate heavy SVG files?
It depends on what you are trying to do. You can also import svgo into your code and customize the behavior. Also take a look at https://lottiefiles.com.
9 replies
Memory management in Nuxt
On the server side Nuxt does an excellent job at handling this stuff as people can get a bit careless. take as an example, recently the Nuxt team introduces
useRequestEvent()
that can run inside .vue components, if you do this
In terms of requests the defineEventHandler
i believe it respects the session and request data so private data it's not leaked unless us the developers return data from the server that it should not be exposed.
For hooks I used them in modules and plugins and they respect where they should run.
Please I am intrested in this topic as well as I am building a lot fo ssr latley, so please if you find something intresting let us know 🙂6 replies
Adding npm packages to Nuxt3
@LighterChu this module
nuxt-video-player
is for Nuxt 2. Take a look at vueUse
library that has a lot of awesome perks.
For working with video you have this composable
https://vueuse.org/core/useMediaControls/2 replies