You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use different buckets for Dev, Staging and Production it is impossible to set the volumes reliably by .env variables. With the volumes.php deprecated, we need some way to set it. A side effect is, that these fields keep being overridden with a bucket name in the project config.
handle: ..
hasUrls: true
name: ...
settings:
bucket: '' → can't be set reliably
bucketSelectionMode: → can't be set reliably
expires: ''
keyFileContents: ''
projectId: $GOOGLE_BUCKET_PROJECT_ID
subfolder: $GOOGLE_BUCKET_IMAGES_FOLDER
sortOrder: 1
type: craft\googlecloud\Volume
url: $GOOGLE_BUCKET_BASE_URL → is sometimes overridden by the system
Solution
I'd be super happy if I could set bucket and url per environment. If there's another way besides the deprecated volumes.php, I'd be glad to know it.
The text was updated successfully, but these errors were encountered:
Description
If you use different buckets for Dev, Staging and Production it is impossible to set the volumes reliably by .env variables. With the volumes.php deprecated, we need some way to set it. A side effect is, that these fields keep being overridden with a bucket name in the project config.
Solution
I'd be super happy if I could set
bucket
andurl
per environment. If there's another way besides the deprecated volumes.php, I'd be glad to know it.The text was updated successfully, but these errors were encountered: