[Android]: Using Physical Device, hmr doesn't work #14563
-
|
so, i am developing a tauri app on an andorid device via usb debuging, i have to close the app on android and reload it over and over again to see ui updates |
Beta Was this translation helpful? Give feedback.
Answered by
tempmail78326453432-glitch
Nov 26, 2025
Replies: 1 comment
-
|
got it , just add this to your vite config import { defineConfig } from 'vite';
const host = process.env.TAURI_DEV_HOST;
export default defineConfig({
...,
clearScreen: false,
server: {
host: host || false,
port: 5173,
strictPort: true,
hmr: host
? {
protocol: 'ws',
host,
port: 5173,
}
: undefined,
},
...,
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tempmail78326453432-glitch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
got it , just add this to your vite config