Skip to content
Discussion options

You must be logged in to vote
/**
 * Vinxi launches two separate HMR (Hot Module Replacement) servers—one for the
 * client router, and one for the server router.
 *
 * Prior to version 0.5.6, these HMR ports were assigned randomly, which made it
 * difficult to configure reverse proxy rules.
 *
 * Starting with v0.5.6, you can explicitly assign fixed HMR ports in the config.
 *
 * ⚠️ Do *not* configure both HMR ports in `viteMain`—Vinxi will try to assign the
 * same port to both and throw an error.
 *
 * With fixed ports, you can write stable reverse proxy rules, such as:
 *   - https://example.dev/_build/client/hmr → http://localhost:4224
 *   - https://example.dev/_build/server/hmr → http://localhost:4334
 *
 * 💡 …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rhyek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants