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.
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.