The word desert is pronounced as /dɪˈzɝːt/ for one meaning and /ˈdez.ɚt/ for the other.
Desert vs dessert.
Desertas a noun means; an area, often covered with sand or rocks, where there is very little rain and not many plants; a waterless, desolate area of land with little or no vegetation, typically one covered with sand.
The pronunciation for this meaning is /ˈdez.ɚt/
Desert as a verb
Desert as a verb means; to abandon (a person, cause, or organization) in a way considered disloyal or treacherous.
(of people) to leave (a place), causing it to appear empty.
‘the tourists have deserted the beaches’
(of a quality or ability) to fail (someone) when most needed.
‘her luck deserted her’
[Military -no object-] to illegally leave the armed forces.
‘his life in the regiment had been such a hell that he decided to desert’
The pronunciation for these meanings is/dɪˈzɝːt/
Dessert (the name for sweet food)
Dessert means; sweet food eaten at the end of a meal.