Align Instances to Curve
If it's not too late, perhaps it's easier to defer the conversion of Curve to Mesh, and let Geometry Nodes do it for you, if you need to do it at all.
Then, when using the Curve to Points node, you have access to the curve's Tangent
and Normal
attributes in the GN tree, and the Rotation
convenience combination, which interprets the curve's tangential direction at the points as Z:
This also leaves you the option of resampling the curve, changing the curve's own profile if you want to display it as a mesh, and so on.