dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

`wasm` / workers target for `dx bundle --platform web --fullstack`

Open jkelleyrtp opened this issue 1 year ago • 1 comments

Feature Request

To support targets like Cloudflare workers for dx bundle, we should allow some sort of configuration for bundle that builds your server as a .wasm module. Ideally the output dx bundle format matches the cloudflare workers format so we could eventually support dx deploy --hosting cloudflare-worker.

This is generally not that hard and would very useful! The main challenge here is simply designing the configuration frontend since the CLI already accepts different targets for the server.

jkelleyrtp avatar Dec 03 '24 17:12 jkelleyrtp

WASM also has limited support in dioxus fullstack. We cannot spawn threads or collect server functions automatically which makes starting dioxus fullstack more difficult. People have got it working with manual server function registration and a single threaded async runtime, but it is something we should document along with this

ealmloff avatar Dec 03 '24 17:12 ealmloff

Related: #4260

Malix-Labs avatar Jul 28 '25 08:07 Malix-Labs