789 B
789 B
hugo-wasm
Compile
GOOS=wasip1 GOARCH=wasm go build -o main.wasm
Note: wasip1 means WASI preview1. As of 2025-02-22 WASI preview2 is not supported yet by golang - but it's available in wasmtime.
Run
wasmtime main.wasm env
Next targets
- Make sure that we can build a
hugo
website with wasmtime (requires to bind folders) - Run this
hugo.wasm
file programatically from Rust - Create a simple webservice (without auth or any bells and whistle) in Rust that takes a public git URL, run git clone, then build the website by calling the WASM file on it
- Publish on S3 this website
- Integrate this workflow in Guichet with appropriate permission checking and features (support authenticated git repositories for example)