// The canvas is built from web/ (npm run build) and embedded. Without a build, embed a page that says so. fn main() { let dist = std::path::Path::new("../web/dist"); if !dist.join("index.html").exists() { std::fs::create_dir_all(dist).unwrap(); std::fs::write( dist.join("index.html"), "
The canvas isn't built yet: run npm run build in web/, then rebuild the hub.