This example demonstrates server-side rendering.
Execute the following commands from the examples/
folder of the repo
- Build hydration bundle
trunk build simple_ssr/index.html
This builds static artifacts that will be served and places them in simple_ssr/dist
.
- Run the server
cargo run --features=ssr --bin simple_ssr_server -- --dir simple_ssr/dist
- Open Browser
Navigate to http://localhost:8080/ to view results.