Add explicit packageId to getBridgeAddress self-resolution
This commit is contained in:
1 parent
05866d146a
commit
eb6671580f
1 file changed
+4
@@ -29,6 +29,10 @@ export const showServiceUrl = sdk.Action.withoutInput(
|
|||||||
async ({ effects }) => {
|
async ({ effects }) => {
|
||||||
const bridge = await sdk.host
|
const bridge = await sdk.host
|
||||||
.getBridgeAddress(effects, {
|
.getBridgeAddress(effects, {
|
||||||
|
// Explicit self-reference: `packageId` may be omitted (it then defaults
|
||||||
|
// to this package), but naming it keeps the call in lockstep with the
|
||||||
|
// documented service-to-service contract in README.md.
|
||||||
|
packageId: 'ppq-private-mode',
|
||||||
hostId: apiHostId,
|
hostId: apiHostId,
|
||||||
internalPort: apiPort,
|
internalPort: apiPort,
|
||||||
ssl: false,
|
ssl: false,
|
||||||
|
|||||||
Reference in new issue
Block a user