Configure wpa_supplicant on Raspberry Pi 4+ prior to booting

HI. I'm trying to build Mate on a rPI 4+. with other distros (rasbian, Rasberry Pi OS) you can manually modify the /boot directory on the sdcard after you flash them and drop a wpa_supplicant.conf and a ssh file in there to preconfigure both services prior to moving the sdcard to the pi for first boot. This allows for pre-configured ssh and wifi so you can boot it headless to get to raspi-config and configure the vnc server and other services.

I've not been able to do this on Mate.

any help would be appreciated.

thanks..