Jordan
Jordan
Explore posts from servers
NNuxt
Created by Jordan on 3/28/2025 in #❓・help
Using NuxtContenet With NuxtImage On a Static Site
Hi there, I am struggling to get NuxtImage to work with my usage of NuxtContent. Basically, I have a directory of json files which is being processed by NuxtContent. I am using queryContent to fetch the contents of those json files so I can loop over them on my page. One of the properties on my content schema is called image, which is just the path the image that needs to get used for that item. I am running into an issue NuxtImage cannot see that I have these image paths in my content json, so it's not processing them when building the site statically, causing 404 errors in production. I think this is because when the site is generated statically, the api calls to nuxt content are still only run on the client side and not run before hand during static site generation. Is it possible to either: 1 - Have my nuxt site completely prerender everything, including client site data request to NuxtContent. Currently I am running npm run generate to build the site. 2 - Tell nuxt image to process the images manually during the static build process. I already tried the option described in the nuxt image docs but it did not end up working. Any assistance is much appreciated!
20 replies
DIAdiscord.js - Imagine an app
Created by Jordan on 8/3/2023 in #djs-questions
What's the best way of storing an interaction in a Redis instance for a later reply?
Hi there, I have a command that takes awhile to process, so I'm using a queue to do each one, one at a time. I'm running into an issue when trying to store the interaction object in my redis instance which I'm using to hold the queue. Whenveer I used interaction.toJson() I get an error saying TypeError: Do not know how to serialize a BigInt. As anyone come across this issue before and is there any good way around it?
7 replies