lib/scrivito/binary_rewrite.rb in scrivito_sdk-1.5.5 vs lib/scrivito/binary_rewrite.rb in scrivito_sdk-1.6.0.rc1

- old
+ new

@@ -22,10 +22,10 @@ # @param block [Proc] block change default CDN url of current binary obj # # @example # Scrivito::BinaryRewrite.enable_for(request) do |binary_url| # binary_url.sub( - # /https:\/\/.+\.scrvt\.com\//, + # "https://scrivito-public-cdn.s3-eu-west-1.amazonaws.com/", # "https://my.reverse.proxy.com/") # end # def self.enable_for(request, &block) request.env["SCRIVITO_BINARY_URL_CALLBACK"] = block