Skip to content

Commit

Permalink
docs: add #14834 to migration guide (#14889)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Nov 6, 2023
1 parent 0873bae commit fc24b07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ There are some changes which only affect plugin/tool creators.
- The `configurePreviewServer` hook now accepts the `PreviewServer` type instead of `PreviewServerForHook` type.
- [[#14818] refactor(preview)!: use base middleware](https://github.com/vitejs/vite/pull/14818)
- Middlewares added from the returned function in `configurePreviewServer` now does not have access to the `base` when comparing the `req.url` value. This aligns the behaviour with the dev server. You can check the `base` from the `configResolved` hook if needed.
- [[#14834] fix(types)!: expose httpServer with Http2SecureServer union](https://github.com/vitejs/vite/pull/14834)
- `http.Server | http2.Http2SecureServer` is now used instead of `http.Server` where appropriate.

Also there are other breaking changes which only affect few users.

Expand Down

0 comments on commit fc24b07

Please sign in to comment.