Kourtney Kardashian felt "very nervous" before the birth of her baby boy.

Kourtney Kardashian recently gave birth to a baby boy

Kourtney Kardashian recently gave birth to a baby boy

The 44-year-old star - who recently gave birth to her first child with her husband Travis Barker - felt anxious towards the end of her pregnancy, after she underwent emergency fetal surgery earlier this year.

A source told Us Weekly: "Kourtney went to the hospital days before she gave birth. Kourtney and Travis were very nervous toward the end, this was the scariest pregnancy she has had."

Kourtney - who also has Mason, 13, Penelope, 11, and Reign, eight, with ex-boyfriend Scott Disick - appreciated Travis' support throughout her pregnancy.

The insider shared: "Travis was right by her side supporting her. Both parents are feeling so very blessed to be new parents and are so grateful that Rocky Thirteen Barker is in this world!"

Prior to giving birth, Kourtney revealed that she required emergency surgery in order to save her baby's life.

The brunette beauty wrote on Instagram at the time: "I will be forever grateful to my incredible doctors for saving our baby’s life. I am eternally grateful to my husband who rushed to my side from tour to be with me in the hospital and take care of me afterwards, my rock. And to my mom, thank you for holding my hand through this.

"As someone who has had three really easy pregnancies in the past, I wasn’t prepared for the fear of rushing into urgent fetal surgery. I don’t think anyone who hasn’t been through a similar situation can begin to understand that feeling of fear. I have a whole new understanding and respect for the mamas who have had to fight for their babies while pregnant.

"Praise be to God. Walking out of the hospital with my baby boy in my tummy and safe was the truest blessing. [prayer and heart emojis] (sic)"