Comfort is key
As long as baby isn't in much pain and is growing and doing well, you don't have to do much of anything-- some spitting is normal.
You can try to feed a little slower, and keep baby upright a little while afterwards. Pausing to burp now and then can help, too. But if your child fusses a lot or seems to be in pain, talk to your pediatrician.