A template for using Leptos ssr + server functions in a Cloudflare worker.
Install Rust from rustup.rs. Then:
cargo install cargo-leptos --lockedYou'll need some version of Node.js. I personally recommend using nvm. Then:
npm install --global wranglerwrangler devwrangler deployQ: I'm getting an error like this in my console:
- Unhandled Promise Rejection: LinkError: import function wbg:__wbindgen_closure_wrapper268 must be callableA: You need to hard refresh in your browser between compiles
- Firefox/Chrome:
Ctrl-Shift-Ror⌘ R - Safari:
⌥ ⌘ E+⌘ R