Heat oil in a large frying pan over medium-high heat. Add shallots and fry until browned, then remove from heat and sprinkle with salt.
Spoon rice into a large serving bowl. Top with squash, a drizzle of sweet-hot Asian chili sauce, fried shallots, and coconut flakes. Squeeze a couple of lime wedges over the bowl and serve.