Finely chop the vegetables in a food processor and set aside or transfer them to a bowl.
Finely chop ham or bacon in a food processor, then add ground beef or pork to be evenly combined.
Mix the meatloaf ingredients. Transfer in a bowl and mix by hand or keep in the food processor and mix in the seasoning, the vegetables, and the binder ingredients. Press pulse a few times until all the ingredients are evenly combined.
How to shape the meatloaf. Grease the loaf pan generously with cooking oil or spray. Press the meatloaf mixture evenly in a loaf pan using a spatula or by compressing with parchment paper.
Invert the loaf pan with the meatloaf on a baking sheet lined with parchment paper and foil. Tap to release the meatloaf.
In a small bowl, mix all the glaze ingredients until well blended.
Brush the meatloaf with the glaze to seal; this helps to avoid cracks on the surface of the meatloaf.
Baking the meatloaf in the air fryer. Bake in a preheated air fryer to 350°F for 15 to 20 minutes. Remove from the oven, then add the remaining glaze on top of the meatloaf. Put it back in the air fryer, decrease the temperature to 325°F and continue cooking for another 10 to 15 minutes or until the internal temperature of the meatloaf reaches between 160°F to 165°F.
Baking the meatloaf in the oven. Bake in a preheated oven to 350°F for 35 to 40 minutes, then add the remaining glaze on top of the meatloaf. Continue cooking for 15 more minutes or until the internal temperature of the meatloaf reaches between 160°F to 165°F.
Let it rest and cool for 10 to 15 minutes before slicing. Serve it warm with side dishes or make a sandwich and enjoy!