Open zanderwar opened 4 years ago
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.
I would checkout the docs at https://docs.silverstripe.org/en/4/developer_guides/templates/requirements/#configuring-combined-file-storage
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 there