chore: optimize port allocation initialization

This commit is contained in:
Ben Allfree 2023-09-15 13:44:03 +00:00
parent fa32dcd179
commit dc47562695

View File

@ -66,7 +66,7 @@ export const createPocketbaseService = async (
const { dbg, warn, error } = logger
const _cfg: Required<SpawnConfig> = {
version: maxVersion,
port: await getPort(),
port: cfg.port || (await getPort()),
isMothership: false,
...cfg,
}