Skip to content

Commit

Permalink
docs: polish
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Dec 11, 2024
1 parent 942be1d commit 792144a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/vike-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,11 @@ app.use(
```

> [!NOTE]
> `vike-node` uses [universal-middleware](https://universal-middleware.dev/) under the hood.
>
> You can find details on `RuntimeAdapter` in the [documentation](https://universal-middleware.dev/reference/runtime-adapter).
> See [`RuntimeAdapter`](https://universal-middleware.dev/reference/runtime-adapter) (`vike-node` uses [universal-middleware](https://universal-middleware.dev/) under the hood).
> [!NOTE]
> `runtime` is already available at `pageContext.runtime`.
>
> So even without the custom `pageContext` function above,
> one could also retrieve the user from `pageContext.runtime.req.user` in any Vike hook.
> The `runtime` object is also available at `pageContext.runtime` so that, even without the custom `pageContext` function above,
> you can retrieve `pageContext.runtime.req.user` in Vike hooks and UI components (with [`usePageContext()`](https://vike.dev/usePageContext)).
<br/>

Expand Down

0 comments on commit 792144a

Please sign in to comment.