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
Fix S3/Cloudflare R2 and Sentry configuration issues
Damian Legawiec85c270e5474f
diff --git a/server/config/environments/production.rb b/server/config/environments/production.rbindex 53f2fbc749..e97486bea4 100644--- a/server/config/environments/production.rb+++ b/server/config/environments/production.rb@@ -24,7 +24,7 @@ Rails.application.configure do# Store uploaded files on the local file system (see config/storage.yml for options).if ENV["AWS_ACCESS_KEY_ID"].present? && ENV["AWS_SECRET_ACCESS_KEY"].present?config.active_storage.service = :amazon- elsif ENV["CLOUDFLARE_ACCESS_KEY_ID"].present? && ENV["CLOUDFLARE_ACCESS_SECRET"].present? && ENV["CLOUDFLARE_ENDPOINT"].present?+ elsif ENV["CLOUDFLARE_ACCESS_KEY_ID"].present? && ENV["CLOUDFLARE_SECRET_ACCESS_KEY"].present? && ENV["CLOUDFLARE_ENDPOINT"].present?config.active_storage.service = :cloudflareelseconfig.active_storage.service = :localdiff --git a/server/config/initializers/sentry.rb b/server/config/initializers/sentry.rbindex 33b34d62af..6df3b00117 100644--- a/server/config/initializers/sentry.rb+++ b/server/config/initializers/sentry.rb@@ -13,7 +13,7 @@ if ENV['SENTRY_DSN'].present?config.release = "spree@#{ENV['RENDER_GIT_COMMIT']}" if ENV['RENDER_GIT_COMMIT'].present?- config.excluded_exceptions = [+ config.excluded_exceptions += ['ActionController::RoutingError','ActiveRecord::RecordNotFound','Sidekiq::JobRetry::Skip',diff --git a/server/config/storage.yml b/server/config/storage.ymlindex 181170fb7e..dfb86e8ebf 100644--- a/server/config/storage.yml+++ b/server/config/storage.yml@@ -20,6 +20,7 @@ cloudflare:secret_access_key: <%= ENV.fetch("CLOUDFLARE_SECRET_ACCESS_KEY", "") %>region: autobucket: <%= ENV.fetch("CLOUDFLARE_BUCKET", "spree-#{Rails.env}") %>+ force_path_style: truerequest_checksum_calculation: "when_required"response_checksum_validation: "when_required"# Remember not to checkin your GCS keyfile to a repository