Check for development rather than production to make it  work on staging