Welcome, @Pontus Klarsjö, to the community!
Well, the ST-LINK are meant to be tools for development, which is why it says in the Terms of Use in section RESTRICTIONS AND WARNINGS:
[...]
You shall not use, in whole or in part, the Evaluation Board in a production system.
[...]
For professional production, especially with higher quantities, a special programmer is certainly more suitable, which you can find, for example, on our partner website.
If the problem is solved, please mark this thread as answered by selecting Select as best, as also explained here. This will help other users find that answer faster.
Regards
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.