Most people are aware of CBT, but what they're not aware of is that there's a version of CBT designed specifically for tackling insomnia, which is called CBT-I.
CBT-I is a structure programme that offers an alternative to taking medication, can help tackle the cause of the sleep issues, and can be done online or through an app (a list of apps is provided in the article).
The article also outlines the techniques that might be used, such as keeping a sleep diary and teaching you relaxation methods.
https://unwantedlife.me/taking-antidepressants-isnt-a-big-deal-heres-why