Skip to content

Commit 0709ec4

Browse files
committed
tweak changeset
1 parent 7de85ff commit 0709ec4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.changeset/hungry-buckets-repair.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Remove `unstable_createViteServer` and `unstable_loadViteServerBuild` which were only minimal wrappers around Vite's `createServer` and `ssrLoadModule` functions when using a custom server.
66

7-
**This is a breaking change for projects using the unstable Vite plugin.**
7+
**This is a breaking change for projects using the unstable Vite plugin with a custom server.**
88

99
Instead, we now provide `unstable_viteServerBuildModuleId` so that custom servers interact with Vite directly rather than via Remix APIs, for example:
1010

@@ -22,7 +22,7 @@ Creating the Vite server in middleware mode:
2222
const vite =
2323
process.env.NODE_ENV === "production"
2424
? undefined
25-
- : await unstable_loadViteServerBuild();
25+
- : await unstable_createViteServer();
2626
+ : await import("vite").then(({ createServer }) =>
2727
+ createServer({
2828
+ server: {

0 commit comments

Comments
 (0)