Skip to content

Commit

Permalink
&
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellnit committed Sep 11, 2024
1 parent 2853a15 commit 5e4f88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/audio_visual_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def s3_url(key)
return ""
end
client_opts = {}
client_opts = { endpoint: ENV['AWS_ENDPOINT_URL']&.sub('minio', 'localhost') } if Rails.env.development?
client_opts = { endpoint: ENV['AWS_ENDPOINT_URL'].sub('minio', 'localhost') } if Rails.env.development?
client = Aws::S3::Client.new(**client_opts)
obj = Aws::S3::Object.new(bucket_name: ENV['AWS_AV_ASSET_BUCKET'], key: key, client: client)
url = ""
Expand Down

0 comments on commit 5e4f88f

Please sign in to comment.