Thick Black W
Nuxt docker volume for cache management?
Hypothetical question, the website it ready, but I haven't tried this part yet because it would waste a lot of time if it doesn't work out, but wondering if someone here already knows. Doc doesn't mention Docker, and I am also unfamiliar with docker, given this is my first project with everythign.
The websites has a lot of caching on the server side, basically the cache is my website's storage. I've given it a max-time life of several weeks to $fetch calls. So during deployment should I link up a volume for cache? ... I am wondering about how to allocate storage for my needs.
If so, how to link a docker volume specifically for nuxt cache?
And the follow up to that: as I update the server aka next deployment, and it no longer has a the same key, let's call the old defunct key "myFirstKey". Will this "myFirstKey" get cleared once it reaches the max-time life? It definately won't be rang/triggered again for caching/refreshing.
I am hoping that where ever the cache it mounted to, the keys store their own states, and the server just scans and removes stale keys automatically. Hope I can get confirmation of on, so I don't waste days trying to do this for it to fail.
18 replies
.env file not working in production build
This is my first nuxt project. The .env file isn't being passed to the production build. From what I understood, I have to map the .env manually to the nuxt.config, is that correct? Also I set the NITRO_PORT in .env and that isn't passed either.
21 replies
How to build and deploy nuxt?
I am not using one of the preconfigured deploy templates offered by many hosting services. Therefore I need to know how to traditionally build the site, deploy it, how to make sure https is enabled, and finally how to update it.
Thanks.
5 replies
How to convert <img /> to <NuxtImg />?
I'm trying to convert this <img src="../assets/imgs/Hero.jpg" alt="" />
to
<NuxtImg src="../assets/imgs/Hero.jpg" alt="" />
and i get the error in browser
localhost/:12
GET http://localhost:3000/_ipx/assets/imgs/Hero.jpg 404 (IPX_FILE_NOT_FOUND)
11 replies
Where is the documentation for $fetch for both nitro server-side and client-side?
Specifically I need to know what to pass in the options object, but I can't find information on this. Searched around for it, but couldn't find it at a quick glace. not my fault here, it's a doc design fault. devs should be notified.
12 replies