How do I ensure that crash dumps/errors in production are not sent to users?
In other languages such as Ruby or Rails, once the application is deployed and its environment set to production, errors are suppressed. The errors can be seen in the web server logs, but they’re not sent to the user. Instead, the user sees such responses like Internal server error, but the actual lines where the error occurred etc are not sent out to the user.
The configuration I think that you are looking for is :debug_errors. That should only be set to true in local development (Endpoint configuration docs Phoenix.Endpoint — Phoenix v1.6.10)