Place homemade gnocchi on a parchment-lined baking pan and keep them in the freezer for 1 hour until hard. Then transfer the frozen gnocchi to an airtight plastic bag and store them in the freezer. It will last up to 2 months.