From 4eda9432bbf7f683a45426af8eb0d5e1e37ff27d Mon Sep 17 00:00:00 2001 From: WorldSEnder Date: Sun, 31 Jul 2022 15:16:54 +0200 Subject: [PATCH] Update README.md (#2794) --- examples/simple_ssr/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/simple_ssr/README.md b/examples/simple_ssr/README.md index 41105b934dd..f751e49a286 100644 --- a/examples/simple_ssr/README.md +++ b/examples/simple_ssr/README.md @@ -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