Southeast Asia's largest economy has posted a monthly trade surplus since mid-2020, driven by a commodity boom.