ax-vasquez / mcnuggies-blog

NextJS site & Sanity Studio code for mcnuggies.dev
http://www.mcnuggies.dev
1 stars 1 forks source link

Load article-embedded image data during build time #116

Closed ax-vasquez closed 10 months ago

ax-vasquez commented 10 months ago

Load images during build time instead of querying for them from the client per-image.

I was rushing through things before and was just trying to get something up and running. However, the previous implementation was significantly-flawed in that it doubled up the requests per image; once for the call that the client made and again to load the image via the URL that was returned from the API call.

Now, there should only be one client-side call that is fetching the image by its URL. There should no longer be any Sanity client requests being made from the browser.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
mcnuggies-blog ✅ Ready (Inspect) Visit Preview Dec 17, 2023 6:34am