craftcms / google-cloud

Google Cloud Storage volume type for Craft CMS.
https://plugins.craftcms.com/google-cloud
MIT License
11 stars 10 forks source link

Craft 4 upgrade changes behaviour of Base URL #29

Closed croxton closed 1 year ago

croxton commented 1 year ago

Description

In Craft 3 I used a custom Base URL to proxy images via Imgix e.g (e.g. https://my-project.imgix.net/). However after upgrading to Craft 4, images transforms in the control panel fail to render unless I set the Google Cloud Storage location as the Base URL (https://storage.googleapis.com/my-project/). Images on the front end work fine using the proxy URL.

Additionally, when Files in this filesystem have public URLs is un-checked images will not be rendered in the control panel at all, whereas previously they were.

Steps to reproduce

  1. Set a Base URL that is different to the actual Google Cloud Storage location
  2. View Assets in the CP

Additional info

croxton commented 1 year ago

No, I am mistaken. Transforms were being made to the staging bucket but I had Imgix pointing to the production bucket, where of course the transforms wouldn't exist. So, it does work (sorry!).