ExtrudeBufferGeometry causing rotation of output

I am trying to extrude some shapes along custom spline paths, however I am finding that after extruding, the output is looking like it has been rotated a bit.

Reduced it to simpler case of extruding a shape in negative Z direction along a line. If I render the actual shape of the triangle and the extruded shape of the triangle afterwards, extruding works fine but there is a change in orientation of the output and it looks rotated. Any ideas ?

Screenshot 2020-03-28 at 1.05.30 AM

https://codesandbox.io/s/extrude-oxf8v

/cc