Making the backend recognize different environments