Skip to content

Commit

Permalink
add missing breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Dec 2, 2024
1 parent 08e9210 commit 8644c81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
* cache related options have been removed
* the `pageContext` setting has been removed in favor of universal-middleware context
* `vike-node/connect` replaced by `vike-node/express`
* The `vike` middleware is now only exported as the default export:
* ```diff
- import { vike } from 'vike-node/{express,fastify,h3,hono,elysia}'
+ import vike from 'vike-node/{express,fastify,h3,hono,elysia}'
```



Expand Down
2 changes: 1 addition & 1 deletion packages/vike-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ If you already have a server:
// server/index.js

- import { renderPage } from 'vike/server'
+ import { vike } from 'vike-node/express'
+ import vike from 'vike-node/express'

- if (isProduction) {
- app.use(express.static(`${root}/dist/client`))
Expand Down

0 comments on commit 8644c81

Please sign in to comment.