Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/utils/port-allocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function getLog(): ReturnType<typeof createLogger> {
*/
export function calculatePortOffset(path: string): number {
const hash = createHash('md5').update(path).digest();
// 100-999 range: Offset starts at 100 to avoid default port 3000, results in ports 3100-3999
// 100-999 range: offset starts at 100; produces ports 3190-4089 when added to basePort (3090)
return (hash.readUInt16BE(0) % 900) + 100;
}

Expand Down
Loading