You have discovered new ways to modify the alchemical brewing process, infusing your potions and alchemical inventions with your own magic.
When you finish a short or long rest and have an empty vial on your person, you may choose to infuse a spell into it by casting it. When you cast the spell in this way, the spell does not take effect immediately, but is infused into the potion.
If the spell grants an effect or restores health, the effect of the spell is gained when the potion is consumed. A vial infused with a spell that has damaging effect or an area of effect, releases the effect when the vial is broken, with the effect centered on where the vial breaks.
A spell lasts its normal duration, unless if the spell requires concentration, then its duration is shortened to a number of rounds equal to your alchemy proficiency bonus, but does not require concentration to maintain.
An infused vial or potion loses its potency if it is not used by the end of your next long rest.