Configured app to respond correctly depending on dev/test or production.