I am currently running a website built with Hugo and hosted on Netlify. I am currently using the free tier, since I am not exactly overwhelmed with bandwidth needs
I’ve recently started coding in Rust and have been looking at the Yew framework to produce WASM powered web sites. Am I right in thinking that I can host such a site on Netlify, and, if so, how do I go about creating a second website in Rust?
Thanks for the reply! Since I posted I’ve switched to another Rust web framework, Leptos. I’ve also noted that this is, indeed, possible, and may well be as simple as a single command, as you suggest. There seems to be a much more helpful Leptos community so I’m sure that someone there has some Netlify experience!
I was finally able to get the web page working. I ran trunk build which generated some wasm stuff alongside the index.html in the dist folder, below my project folder. All it then needed was to reference that dist folder in my netlify.toml like so…
So interesting, I never had this issue until today. Previously, I set the target and channel in the rust-toolchain.toml and it worked. I do have a script to check for trunk, so I only install it if the cache gets cleared. I wonder if something changed.