How do i make Firefox use Nvidia while on Wayland session?

i just tried Wayland and it seems fine now.
i have an hybrid laptop and run optimus manager on “Hybrid” mode.
i have a Firefox.desktop file where i have Exec=MOZ_X11_EGL=1 prime-run /usr/lib/firefox/firefox
in xorg nvidia-smi shows that FF is using Nvidia but not on Wayland.