In the frontline or on the frontline?

eg. We produce drugs and medical supplies for injured soliders and civilians [color=blue]on the frontline.
We produce drugs and medical supplies for injured soliders and civilians [color=blue]in the frontline.

Which one is better? And what is the difference between In the frontline and On the frontline?

On the front line(s)

I can’t tell the difference between them. Why? Could you please help me to clarify them?

The other form uses the wrong preposition.