Brown off the sausages in a pan turning regularly until slightly brown. This takes about 5-7 minutes. Once the sausages are browned remove form the pan and set aside.
Now fry the chopped onions and crushed garlic. Saute for about five minutes.
Add the chopped peppers, carrots, and courgette. Cook for a further five minutes.
Pour in the wine if using.
Add the chopped tomatoes, baked beans, and tomato puree, and crumble in the gluten-free stock cube. Give everything a good stir.
Sprinkle in the herbs and season with salt and pepper.
Transfer everything to a baking dish.
Cook for an hour at 180c (Gas 6), or until the potatoes are soft.