I have set up a wireguard via pfsense and a tunnel with twenty peers, but they are not automatic, is there a better way?

I have set up a wireguard via pfsense and a tunnel with twenty peers, but they are not automatic, is there a better way?
I specified wireguad as the gateway and enabled static routing to point the IP addresses of twenty peers to the upstream gateway (Mikrotik), then my WAN is offline, but it does not affect the Internet.
I’m following this tutorial #How to set up WireGuard in pfSense
Is there a better tutorial on how to do it that I can refer to? My English is very poor to communicate with a translator, hope to get help, thank you, friend men

I am not aware of any automatic way to do this.