Mostly according to this recipe, but I am also making a non-onion pie and a gluten-free one. Some other small variations based on available ingredients, etc.