Closed DaTrader closed 4 months ago
I have decoupled it from patterns in main but we plan to keep it as part of the live reloader for now. I also don't think we need a comment or a mention in the docs, users are welcome to try if they are aware of the implications. Thanks!
Thanks to @chrismccord 's article (https://fly.io/phoenix-files/phoenix-dev-blog-server-logs-in-the-browser-console/), we have managed to use this new feature successfully in our staging environment (as an alternative to digging deep into a Kubernetes console).
Unless there's a good reason for why this practice should not be recommended and should instead be reserved solely for the dev environment, I suggest the following changes:
staging.exs
config file to support the feature (assuming it's otherwise a copy of theprod.exs
):Add:
Remove:
web_console_logger
config from thepatterns
config so we don't need to specify otherwise non-existent file(s) just for the sake of the feature to work. Also, decouple it from thecode_reloader
config as it can be treated a completely separate feature,