tauri/.changes/dev-url-localhost-mobile.md
Lucas Fernandes Nogueira 7ba67b4aca
refactor!: use localhost for development on Android devices and emulators or iOS simulators (#10437)
* feat(cli): use localhost on mobile!

* change cargo-mobile2

* use public network address on iOS device :(

* add change file

* actually breaking

* pin cargo-mobile2

* rename env var
2024-08-02 07:35:18 -03:00

468 B

tauri-cli @tauri-apps/cli
patch:breaking patch:breaking

ios dev and android dev now uses localhost for the development server unless running on an iOS device, which still requires connecting to the public network address. To conditionally check this on your frontend framework's configuration you can check for the existence of the TAURI_DEV_HOST environment variable instead of checking if the target is iOS or Android (previous recommendation).