I followed the S3 documentation (https://docs.shopware.com/en/shopware-platform-dev-en/how-to/use-s3-datastorage) but is not very complete
I manage to store the resources in the AWS bucket but it has some performance issues
It does not compress the files
This is without the CDN
And this is with the CDN active
This is my code in config/packages/shopware.yml:
shopware:
filesystem:
public:
url: "https://s3.eu-central-1.amazonaws.com/%env(AWS_BUCKET)%"
type: "amazon-s3"
config:
bucket: "%env(AWS_BUCKET)%"
region: "eu-central-1"
endpoint: "https://s3.eu-central-1.amazonaws.com/%env(AWS_BUCKET)%"
root: "/"
options:
visibility: "public" # On private adapters need this to be private
theme:
url: "https://s3.eu-central-1.amazonaws.com/%env(AWS_BUCKET)%"
type: "amazon-s3"
config:
bucket: "%env(AWS_BUCKET)%"
region: "eu-central-1"
endpoint: "https://s3.eu-central-1.amazonaws.com/%env(AWS_BUCKET)%"
root: "/"
options:
visibility: "public" # On private adapters need this to be private
asset:
url: "https://s3.eu-central-1.amazonaws.com/%env(AWS_BUCKET)%"
type: "amazon-s3"
config:
bucket: "%env(AWS_BUCKET)%"
region: "eu-central-1"
endpoint: "https://s3.eu-central-1.amazonaws.com/%env(AWS_BUCKET)%"
root: "/"
options:
visibility: "public" # On private adapters need this to be private
sitemap:
url: "https://s3.eu-central-1.amazonaws.com/%env(AWS_BUCKET)%"
type: "amazon-s3"
config:
bucket: "%env(AWS_BUCKET)%"
region: "eu-central-1"
endpoint: "https://s3.eu-central-1.amazonaws.com/%env(AWS_BUCKET)%"
root: "/"
options:
visibility: "public" # On private adapters need this to be private
Do I miss something?
It pushes my site performance (lighthouse) like 20points down