fix api release checking for production