The most robust and best sounding setup will be hard wire ethernet cable from router to music streamer. A wireless link is a compromise. However, when I did some experimenting streaming television programming, I had the wireless mesh router near the TV connected by ethernet cable back to my audio grade network bridge. The picture was just slightly less clear using wireless to the Apple TV box vs the ethernet cable plugged directly into the Apple TV box. So based on my experience, a wifi link may be just fine or you may hear a difference depending on your system and all other factors- like RFI levels in your home. You will have to try it both ways- put the audio grade network switch before the wireless link and then try it close to your music streamer. The latter is likely to give the best results for streaming music. The best ethernet cable should be at the music server.
I know all this because I stayed at a Holiday Inn Express last week. Yes, I really did and it was crazy expensive. My first hotel stay since Covid. Wow! Prices have gone up a lot.