strapi-community / strapi-plugin-local-image-sharp

Dynamically resize, format and optimize images based on url modifiers.
https://strapi-community.github.io/strapi-plugin-local-image-sharp/
65 stars 17 forks source link

Prepare for Strapi 4.3.x #5

Closed joshmeads closed 2 years ago

joshmeads commented 2 years ago

Allows for the new structure of the dirs object. See https://github.com/strapi/strapi/blob/v4.3.0-beta.1/packages/core/strapi/lib/utils/get-dirs.js

You'll otherwise get the following error:

IPX Error (File not found (/app/apps/cms/undefined/uploads/thumbnail_logo_white_e635fa69dc.png))
stafyniaksacha commented 2 years ago

Oh sorry, I did not see your PR before.

The strapi.dirs?.dist?.public path was introduced in the v4.3.0-beta.1 and changed to strapi.dirs?.static?.public after so we can remove it!

I'm closing the PR because I did it on v1.2.0 Thanks for your contribution.