Louis XIV identified himself completely with the French people, so it seems likely that he viewed Versailles as a monument to French culture, not just himself. If so, history has vindicated him. The French people are clearly proud of Versailles. If you go there, or watch a French documentary on the place, the emphasis will be on its grandeur, not the suffering of the taxpayers who funded it and the workers who built it.
In a sense, Versailles is a lot like Xi’s concept of the “Chinese dream;” China is great, therefore you are. The difference is that Xi isn’t building anything that will evoke Chinese greatness centuries from now. Airports, highways, and innumerable identical high-rise buildings don’t count. Neither do Uighur camps.