Skip to content

Commit

Permalink
doc: remove migration from README
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Nov 25, 2024
1 parent 5f3de9c commit 2443877
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions packages/vike-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,36 +245,6 @@ function startServer() {

## Migration guide:

### `0.1.x` to `0.2.x`

#### Caching support removed

```diff
app.use(
vike({
compress: false,
- static: {
- cache: false
- }
})
)
```

#### `pageContext`

If you were using it to feed `universal-middleware` context to `pageContext`, it's now the default behaviour.<br>
Otherwise, you now need to [create a universal context middleware](https://universal-middleware.dev/recipes/context-middleware#updating-the-context) and attach it to your server.

```diff
app.use(
vike({
- pageContext: (req) => ({
- user: req.user
- })
})
)
```

### Codebase without `vike-node`

```diff
Expand Down

0 comments on commit 2443877

Please sign in to comment.