Fix condition for generating production configuration