Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
ADD info to docs about storage for cloudflare (#12814)
brozek19ebb0d41164
diff --git a/docs/developer/deployment/assets.mdx b/docs/developer/deployment/assets.mdxindex 47e4342c36..c3eec84344 100644--- a/docs/developer/deployment/assets.mdx+++ b/docs/developer/deployment/assets.mdx@@ -76,6 +76,8 @@ cloudflare:secret_access_key: <%= ENV.fetch("CLOUDFLARE_SECRET_ACCESS_KEY", "") %>region: autobucket: <%= ENV.fetch("CLOUDFLARE_BUCKET", "spree-#{Rails.env}") %>+ request_checksum_calculation: "when_required"+ response_checksum_validation: "when_required"```You will also need to add the `aws-sdk-s3` gem to your Gemfile.@@ -84,6 +86,17 @@ You will also need to add the `aws-sdk-s3` gem to your Gemfile.gem "aws-sdk-s3", require: false```+<Info>+aws-sdk-s3 version 1.178.0 introduced a modification to the default checksum behavior from the client that is currently incompatible with R2 APIs.++To mitigate, users can use 1.177.0 or add the following to their s3 client instantiation:++```yaml+request_checksum_calculation: "when_required"+response_checksum_validation: "when_required"+```+</Info>+And run `bundle install`.Now you need to switch the storage service in your `config/environments/production.rb` file.