diff --git a/docs/sdk.md b/docs/sdk.md index 345c46a..88bb3d8 100644 --- a/docs/sdk.md +++ b/docs/sdk.md @@ -93,6 +93,7 @@ const paths = getVapiPaths(); const config = await loadConfig(paths.config); const [listing] = await vapiRegistrySource(config.marketplaceDiscoveryUrl, { discoveryUrl: config.discoveryUrl, + allowPrivateNetwork: config.allowPrivateNetwork ?? false, }).search("weather"); const store = await WalletStore.open(paths.directory); diff --git a/examples/pay-with-sdk.ts b/examples/pay-with-sdk.ts index 8c8fb6e..567a22f 100644 --- a/examples/pay-with-sdk.ts +++ b/examples/pay-with-sdk.ts @@ -33,6 +33,7 @@ const paths = getVapiPaths(); const config = await loadConfig(paths.config); const source = vapiRegistrySource(config.marketplaceDiscoveryUrl, { discoveryUrl: config.discoveryUrl, + allowPrivateNetwork: config.allowPrivateNetwork ?? false, }); const [listing] = await source.search(query); if (!listing) throw new Error(`No payable listing found for ${JSON.stringify(query)}.`);