I like to use MIX_ENV for build concerns (debug logs in dev, mocks in test, optimizations in prod) and MIX_TARGET for deployment concerns, to differentiate between things like demo, QA, staging, prod, etc. Those normally get deployed as prod builds, but can be deployed as dev builds if extra visibility is needed.
4 Likes