From 32b76737cfec39639273390c8f5e495226bb8738 Mon Sep 17 00:00:00 2001 From: Ahad Birang Date: Thu, 1 Dec 2022 17:20:27 +0100 Subject: [PATCH] fix(ws): prevent port conflict on running multiple instances --- src/module.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/module.ts b/src/module.ts index fe47483ee..48cb32a62 100644 --- a/src/module.ts +++ b/src/module.ts @@ -244,7 +244,10 @@ export default defineNuxtModule({ }, watch: { ws: { - port: 4000, + port: { + port: 4000, + portRange: [4000, 4040] + }, hostname: 'localhost', showURL: false }