From bb409683aea6fa64bc6954c3bd39ff858373bfdd Mon Sep 17 00:00:00 2001 From: "guillem.cordoba" Date: Wed, 16 Oct 2024 12:42:25 +0200 Subject: [PATCH] Fix tauri android dev --- crates/tauri-plugin-holochain/src/lib.rs | 1 + examples/end-user-happ/ui/vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/tauri-plugin-holochain/src/lib.rs b/crates/tauri-plugin-holochain/src/lib.rs index 73cbac55..e4ed3785 100644 --- a/crates/tauri-plugin-holochain/src/lib.rs +++ b/crates/tauri-plugin-holochain/src/lib.rs @@ -697,6 +697,7 @@ async fn launch_and_setup_holochain( let holochain_runtime = launch_holochain_runtime(passphrase, config).await?; + #[cfg(desktop)] if tauri::is_dev() { create_hc_live_file(holochain_runtime.admin_port)?; diff --git a/examples/end-user-happ/ui/vite.config.ts b/examples/end-user-happ/ui/vite.config.ts index efd3ca07..5e2d82df 100644 --- a/examples/end-user-happ/ui/vite.config.ts +++ b/examples/end-user-happ/ui/vite.config.ts @@ -12,7 +12,7 @@ export default defineConfig(async () => ({ server: { port: 1420, strictPort: true, - host: host || false, + host: "0.0.0.0" || false, hmr: host ? { protocol: "ws",