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
I'm not sure if this is a bug in the Requirements class, if you think this is just close it off and i'll create a ticket there
The text was updated successfully, but these errors were encountered:
zanderwar
changed the title
Using combine_files() causes file to be uploaded to s3 but CMS fails to provide a link to it
Using combine_files() causes file to be uploaded to s3 but framework fails to provide a link to it
Jun 17, 2020
To use S3 and Requirements you will most likely need to extended the RequirementsBackend class and configure Silverstripe to use your class as default. Basically you will need to have your new class utilize the s3 urls. If I am correct the Requirements classes look at the local filesystem only for the combined assets and if the files don't exist it breaks.
Requirements functionality, if I am correct may be deprecated as now a days most people are using modern tooling for combining assets such as CSS preprocessors and is bundlers like webpack.
Basically your best course of action is to change the folder the combined assets get outputted to and setting configuration for how the filesystem looks for those files.
results in:
combined file is uploaded to s3 though
I'm not sure if this is a bug in the
Requirements
class, if you think this is just close it off and i'll create a ticket thereThe text was updated successfully, but these errors were encountered: