Skip to content

Commit

Permalink
Update production.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
russellporter committed Dec 17, 2024
1 parent 6be898c commit cd13a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
end

Rails.application.config.middleware.use ExceptionNotification::Rack,
ignore_if: ->(env, exception) { exception.message =~ /invalid byte sequence in UTF-8/ },
.use ExceptionNotification::Rack,
ignore_if: ->(env, exception) { exception.message =~ /invalid byte sequence in UTF-8/ || exception.message =~ /is not a valid MIME type/ },
email: {
email_prefix: "[WhyJustRun Core] ",
sender_address: %{"WhyJustRun Core" <[email protected]>},
Expand Down

0 comments on commit cd13a8c

Please sign in to comment.