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 committed Nov 6, 2023
1 parent 4370c65 commit 2da060f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guide/migration.md
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 2da060f

Please sign in to comment.