Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 499 Bytes

README.md

File metadata and controls

21 lines (11 loc) · 499 Bytes

Server-side Rendering Example

This example demonstrates server-side rendering.

How to run this example

Execute the following commands from the examples/ folder of the repo

  1. Build hydration bundle

trunk build simple_ssr/index.html

This builds static artifacts that will be served and places them in simple_ssr/dist.

  1. Run the server

cargo run --features=ssr --bin simple_ssr_server -- --dir simple_ssr/dist

  1. Open Browser

Navigate to http://localhost:8080/ to view results.