Updated code to activate production mode in client side.