Once cooked, baked pineapple will last 2-3 days in the refrigerator.  You can eat it cold or reheat it in the oven or air fryer until heated through.