UPD:
managed to resolved thanks to Ionic 7 + Vue/Vite + Capacitor 5 set .env file for ionic capacitor run - #4 by aaronksaunders
so
- I have to build using vite build with the mode
ionic build -- --mode dev && npx cap sync - To run on android device with the
--no-buildflag.ionic capacitor run android --no-build(You have to do previous steps - Enabled Developer mode on Android device, connect and pair viaadb)