2024-01-03 20:52:56 +08:00
|
|
|
# Server Sider Rendering
|
|
|
|
|
|
|
|
To enable the ssr mode, the following configurations are required:
|
|
|
|
|
|
|
|
```toml
|
2024-02-09 22:44:22 +08:00
|
|
|
thaw = { ..., features = ["ssr"] }
|
2024-01-03 20:52:56 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
To enable the hydrate mode, the following configurations are required:
|
|
|
|
|
|
|
|
```toml
|
2024-02-09 22:44:22 +08:00
|
|
|
thaw = { ..., features = ["hydrate"] }
|
2024-01-03 20:52:56 +08:00
|
|
|
```
|
2024-07-31 16:45:05 +01:00
|
|
|
|
|
|
|
Remember to add thaw to your `Cargo.toml` file in the corresponding feature, e.g.
|
|
|
|
|
|
|
|
```toml
|
|
|
|
[features]
|
|
|
|
...
|
|
|
|
hydrate = [..., "thaw/hydrate"]
|
|
|
|
ssr = [
|
|
|
|
...
|
|
|
|
"thaw/ssr",
|
|
|
|
]
|
|
|
|
```
|