We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f949b71 commit ffce989Copy full SHA for ffce989
src/vite/plugin.tsx
@@ -235,6 +235,11 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
235
if (server.config.appType !== "custom") {
236
return
237
}
238
+ if (server.config.server.port) {
239
+ process.rdt_port = server.config.server.port ?? 5173
240
+ port = process.rdt_port
241
+ }
242
+
243
server.httpServer?.on("listening", () => {
244
process.rdt_port = server.config.server.port ?? 5173
245
port = process.rdt_port
0 commit comments