mirror of
https://github.com/pockethost/pockethost.git
synced 2025-07-05 20:32:29 +00:00
chore: optimize port allocation initialization
This commit is contained in:
parent
fa32dcd179
commit
dc47562695
@ -66,7 +66,7 @@ export const createPocketbaseService = async (
|
|||||||
const { dbg, warn, error } = logger
|
const { dbg, warn, error } = logger
|
||||||
const _cfg: Required<SpawnConfig> = {
|
const _cfg: Required<SpawnConfig> = {
|
||||||
version: maxVersion,
|
version: maxVersion,
|
||||||
port: await getPort(),
|
port: cfg.port || (await getPort()),
|
||||||
isMothership: false,
|
isMothership: false,
|
||||||
...cfg,
|
...cfg,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user