From ba51a6bfb8c9a5399a8b56795da66f5891d6584c Mon Sep 17 00:00:00 2001 From: devthedevil <41816786+devthedevil@users.noreply.github.com> Date: Sat, 27 Jun 2026 00:58:20 -0500 Subject: [PATCH] fix(cli): derive default API debug port from configured API port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously `defaultApiDebugPort` was hardcoded to 18911, causing port conflicts when running multiple Redwood apps simultaneously. Now it is derived from the configured API port (e.g. api.port=8912 → debug port 18912), matching the pattern used by `apiPreferredPort`. Fixes #10937 --- packages/cli/src/commands/devHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/commands/devHandler.js b/packages/cli/src/commands/devHandler.js index fe7982d18e41..7ea845ed2683 100644 --- a/packages/cli/src/commands/devHandler.js +++ b/packages/cli/src/commands/devHandler.js @@ -15,7 +15,7 @@ import { generatePrismaClient } from '../lib/generatePrismaClient' import { getFreePort } from '../lib/ports' import { serverFileExists } from '../lib/project' -const defaultApiDebugPort = 18911 +const defaultApiDebugPort = parseInt(`1${getConfig().api.port}`) export const handler = async ({ side = ['api', 'web'],