how to keep homemade baby food fresh

Freezer: 3-6 months (ideally use within 1-3 months)
Refrigerator (fruits / veggies): 48 hours
Refrigerator (meat, poultry, fish eggs): 24 hours

For optimal quality and nutrient retention, keep frozen baby food cubes in the freezer for a maximum of 3 months.
Baby food cubes are safe to remain in the freezer from 3 to 6 months. Using baby food cubes within 1 month to 3 months is really more prudent. Due to the amount of water crystals that tend to build up with baby food purees, and due to the fact that nutrients may leach/evaporate upon thawing because of the water crystals, it is more prudent to use your frozen baby foods cubes as soon as possible – 3 months of storage tops. We always recommend using within 1 month if at all possible.

Many authoritative guidelines will say that most fruits and veggies will keep from 8 to 12 months in the freezer. This is mostly true of foods that are frozen in their natural state. This is also assuming that the freezer remains at a constant sub-zero temperature. Storing foods in a deep freezer is best should you wish to keep frozen foods for that time frame.
Remember that when certain books give freezer time guidelines, they rely on the typical guidelines for fruits/veggies that have NOT been cooked and turned into purees.