Surgery has gotten a lot safer in the last couple decades however, there are still risks. General anesthesia used to be ten times more dangerous than it is now but it's still not zero.
Your link has: "Most bunion surgery is performed under ankle block anesthesia, in which your foot is numb, but you are awake. Occasionally, general or spinal anesthesia is used."