Some investors exposed themselves to potentially devastating losses through riskier plays; consumer-product companies expanded factories and revamped production lines on a bet that working from home is here to stay, and some turned Christmas trees into edibles.