Skip to content

Commit

Permalink
docs: fix pre-rendering typo
Browse files Browse the repository at this point in the history
  • Loading branch information
namoscato committed Feb 15, 2025
1 parent 1e6b2e1 commit 6dbfd29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/how-to/pre-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: Pre-Rendering

Pre-Rendering allows you to speed up page loads for static content by rendering pages at build time instead of at runtime. Pre-rendering is enabled via the `prerender` config in `react-router.config.ts` and can be used in two ways based on the `ssr` config value:

- Alongside a runtime SSR server ith `ssr:true` (the default value)
- Alongside a runtime SSR server with `ssr:true` (the default value)
- Deployed to a static file server with `ssr:false`

## Pre-rendering with `ssr:true`
Expand Down Expand Up @@ -86,7 +86,7 @@ During development, pre-rendering doesn't save the rendered results to the publi

## Pre-rendering with `ssr:false`

The above examples assume you are deploying a runtime server, but are pre-rendering some static pages in order to serve them faster and avoid hitting the server.
The above examples assume you are deploying a runtime server but are pre-rendering some static pages to avoid hitting the server, resulting in faster loads.

To disable runtime SSR and configure pre-rendering to be served from a static file server, you can set the `ssr:false` config flag:

Expand Down

0 comments on commit 6dbfd29

Please sign in to comment.