Unfortunately, Hygraph does not allow to switch to the old provider. Therefore NuxtImage is currently not working for Hygraph users starting from March 2024 onwards.
Suggested Solution:
Add a new provider config (e.g. hygraph-v2) to stay compatible with the legacy version.
Hygraph has released an all-new version of their Asset API: https://hygraph.com/docs/api-reference/assets/assets-overview#which-asset-system-does-my-project-use
I am not affiliated with Hygraph, but based on testing it if found the following breaking changes:
Legacy API:
New API:
Instead of 'https://media.graphassets.com' a new regional endpoint must be used: https://eu-central-1-shared-euc1-02.graphassets.com --> this is okay as it can be configured in nuxtconfig
The URL of the images changed from
{baseurl}/{transformation}/{id}' to
{baseurl}/{someId}{transformation}/{id}' --> this is a breaking change to the implementation: https://github.com/nuxt/image/blob/e4ea7015d14562fb3d072f0f0ae8cbccd0ed0ac4/src/runtime/providers/hygraph.ts#L41C18-L41C25Problem
When you now use NuxtImage with
And the following NuxtImage:
The resulted src is :
Which is invalid and leads to a 404 error.
Unfortunately, Hygraph does not allow to switch to the old provider. Therefore NuxtImage is currently not working for Hygraph users starting from March 2024 onwards.
Suggested Solution:
Add a new provider config (e.g.
hygraph-v2
) to stay compatible with the legacy version.