From 25e6cad80eada777c66eecb69774030146d91e29 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 13 Dec 2023 10:24:30 +0200 Subject: [PATCH] chore: remove trunk fork mention (#1750) * chore: remove trunk fork mention * Update trunk.mdx --- src/content/docs/guides/frontend/trunk.mdx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/content/docs/guides/frontend/trunk.mdx b/src/content/docs/guides/frontend/trunk.mdx index f338afb14a..36d4226825 100644 --- a/src/content/docs/guides/frontend/trunk.mdx +++ b/src/content/docs/guides/frontend/trunk.mdx @@ -5,18 +5,11 @@ i18nReady: true Trunk is a WASM web application bundler for Rust. Learn more about Trunk at https://trunkrs.dev. This guide is accurate as of Trunk 0.17.5. -:::caution[Note on Mobile Support] - -Tauri mobile development is not currently possible with the official version of Trunk. If developing for mobile you will need to use https://github.com/amrbashir/trunk until https://github.com/thedodd/trunk/pull/494 and https://github.com/thedodd/trunk/pull/500 are merged and released. - -You will need to use `cargo install --git https://github.com/amrbashir/trunk` when installing Trunk and then set `serve.ws_protocol = "ws"` in `Trunk.toml`. - -::: - ## Checklist - Use SSG, Tauri doesn't officially support server based solutions. - Use `address = "0.0.0.0"` so that the webserver is available on the network for mobile development. +- Use `ws_protocol = "ws"` so that the hot-reload websocket can connect properly for mobile development. - Enable `withGlobalTauri` to ensure that Tauri APIs are available in the `window.__TAURI__` variable and can be imported using `wasm-bindgen`. ## Example Configuration @@ -45,4 +38,5 @@ ignore = ["./src-tauri"] [serve] address = "0.0.0.0" +ws_protocol = "ws" ```