Mazda 6 - Cracked alloy - jnw

It turns out that the front n/s alloy rim has a crack about 5mm long – possibly as a consequence of hitting a pothole in the winter – not sure why it took so long to show up.

Is it possible and safe to have such a problem repaired or is it better to bite the bullet and buy a new rim?