image icon indicating copy to clipboard operation
image copied to clipboard

Storyblok provider does not update image url format for new storyblok image service

Open gavmck opened this issue 3 years ago • 4 comments

The new storyblok image service, https://a.storyblok.com, appears to have a new url format.

https://www.storyblok.com/docs/image-service#migrating-from-the-previous-version-of-the-service

The storyblok image provider does not appear to update the url for this format and the image returns a 403 as if it wasn't there.

gavmck avatar Jan 19 '22 09:01 gavmck

Yes, seems that nuxt/image still does not provide support for it, found this issue from a few months ago with basically the same problem. As a workaround, we can create our own Providers and just add the url manually. #450

madebyfabian avatar Jan 20 '22 13:01 madebyfabian

@gavmck I'm facing the same issue – were you able to resolve with with @madebyfabian suggestion?

Unfortunately, I can't seem to get a custom provider working..

Thanks!

studiolathe avatar Feb 20 '22 01:02 studiolathe

@studiolathe I used the old baseUrl, which seemed to work.

image: {
      domains: ['a.storyblok.com'],
      storyblok: {
        baseURL: 'https://img2.storyblok.com',
      },
},

gavmck avatar Feb 22 '22 09:02 gavmck

PR created to use the new Image Service API syntax.

jorgemartins-uon avatar Mar 23 '22 03:03 jorgemartins-uon