jrrdnx / craft-cloudflare-r2

MIT License
6 stars 3 forks source link

Support for bucket name environment variable #10

Closed Thijmen closed 6 months ago

Thijmen commented 6 months ago

Hi there,

First and foremost, thank you for this plugin. It works as a charm!

Currently, we have the account id, access key id and secret access key as an environment variable. This works fine for the same account, however when we're trying to develop and want to develop against a development bucket, it doesn't work because the bucket name changes (as expected). Is there a way to also have the bucket name as an environment variable, so we can easily change the environment without persisting/changing settings of a filesystem?

Thanks in advance,

Thijmen

jrrdnx commented 6 months ago

Thanks @Thijmen !

This is actually possible currently. For the Bucket field, choosing 'Manual' from the dropdown will allow you to enter a value, including environment variables, to specify the bucket name.

Screenshot 2024-03-07 at 3 16 56 PM
Thijmen commented 6 months ago

That indeed does seems to work like a charm, totally missed this, thanks!