Heat the oil in a medium saucepan over medium heat.
Add the shallots and sauté for 5 minutes until softened.
Stir in the red curry paste, garlic, and ginger.
Sauté for 30 seconds until fragrant.
Pour in 2½ cups of water and the reserved pineapple juice.
Add 1 cup (240 ml) of the sweet potato chunks, then cover and simmer for 10-15 minutes, until the sweet potatoes are fork-tender.
Carefully blend the mixture until smooth using an immersion blender directly in the pot, or by transferring it to a standard blender. Return the smooth base to the saucepan if necessary.
Add the remaining 1½ cups of sweet potatoes to the saucepan and bring to a boil.
Cover and simmer for 5 minutes.
Stir in the pineapple chunks, green beans, and light coconut milk.
Cover and simmer for another 7-10 minutes, until the green beans are crisp-tender.
Serve hot, garnished with fresh basil or cilantro leaves.
Don't overcook the green beans. You want them to be crisp-tender to provide a nice textural contrast to the creamy sweet potato base.