Throw exceptions when deploying in development.
Fix issue where enviroment is not detected properly in browsers.