Skip to content

Commit

Permalink
Update README.md (#2794)
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldSEnder committed Jul 31, 2022
1 parent a4dcded commit 4eda943
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/simple_ssr/README.md
Expand Up @@ -4,13 +4,17 @@ This example demonstrates server-side rendering.

# How to run this example

1. build hydration bundle
Execute the following commands from the `examples/` folder of the repo

`trunk build examples/simple_ssr/index.html`
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`.

2. Run the server

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

3. Open Browser

Expand Down

0 comments on commit 4eda943

Please sign in to comment.