-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding param to PublicCDNAdapter to allow for custom asset path folder name. #56
Conversation
…w to configure the PublicCDNAdapter to support a custom cdn asset path name. Updating PublicCDNAdapter.php to support a custom path variable, instead of always utilizing /assets/ taken from ASSET_DIR in silverstripe.
… sake of versioning), and adding options to README.md example
Thanks @michalkleiner for assisting me here. |
@madmatt could I ask is there anything required to expedite this PR into a release? Would be keen to use this change in a production environment on my side without having to use |
Hey @samandeggs, no worries - I've just released version 1.3.0 now. Thanks for making these changes, thanks for including docs, and thanks @michalkleiner for reviewing! |
@madmatt since we changed the constructor I wasn't sure whether we wanted this as 2.0 or 1.3, so didn't tag a release myself. I guess this is one of the modules where the strict semver commitment wasn't as strong as it probably could/should. |
Thanks @madmatt and thanks again @michalkleiner |
Good point @michalkleiner, I read the change and saw that it’s backwards compatible so figured it’s fine as a minor release. If anyone is overriding the constructor with a subclass that would need it’s signature changed to avoid strictness warnings, that seems simple enough - I take your point though that maybe 2.0.0 would have been more accurate of a version number despite how simple the change was. |
Default path extension of
/assets/
doesn't always line up to desired S3 bucket path/origin path, and causes unnecessary issues when this can be easily overridden. Must be fully overridden in the config, but allows for edge-case handling of this path naming.Just have to redeclare the following config:
Have updated the README.md to reflect this, as well as ripping out what appeared to be accidental inclusion of
>> HEAD
comments from git, as well as adjusting the .editorconfig to have 2 space tabs instead of 4, which was causing issues with the appearance of the .yml and .json code examples.