From 6e1704eb9c35e4494eb03df1ed9a921a21d0d118 Mon Sep 17 00:00:00 2001 From: Elliot Braem <16282460+elliotBraem@users.noreply.github.com> Date: Fri, 5 Jul 2024 22:08:46 -0400 Subject: [PATCH] Adds missing docs for -g flag support nearfs bundles (#124) * adds missing doc for ipfs url * wording --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1ab5222..093ef81 100644 --- a/README.md +++ b/README.md @@ -229,17 +229,21 @@ Running the bos-workspace dev server will start a local gateway with a standard bw dev --no-gateway ``` -However, there is an option to override this default gateway with a custom `/dist`. This is helpful when building widgets that utilize [custom VM elements](https://github.com/NEARBuilders/near-bos-webcomponent?tab=readme-ov-file#configuring-vm-custom-elements). To use this feature, use the `-g` flag with a path to the local custom distribution: +However, there is an option to override this default gateway with a custom `/dist`. This is helpful when building widgets that utilize [custom VM elements](https://github.com/NEARBuilders/near-bos-webcomponent?tab=readme-ov-file#configuring-vm-custom-elements). To use this feature, use the `-g` flag with a path to the local custom distribution or link to package published on [nearfs](https://github.com/vgrichina/nearfs) or via cdn: ```cmd bw dev -g path/to/dist ``` -This will automatically start the local gateway, but using the provided dist. +```cmd +bw dev -g https://ipfs.web4.near.page/ipfs/bafybeiancp5im5nfkdki3cfvo7ownl2knjovqh7bseegk4zvzsl4buryoi +``` + +This will automatically start the local gateway serving your widgets through the provided dist. It is easy to build and distribute a custom gateway using the [near-bos-webcomponent](https://github.com/nearbuilders/near-bos-webcomponent), see ["Configuring VM Custom Elements"](https://github.com/NEARBuilders/near-bos-webcomponent?tab=readme-ov-file#configuring-vm-custom-elements). -The bos-workspace dev server is specially configured with the near-bos-webcomponent to automatically set the `rpc` attribute with the [proxy-rpc](#proxy-rpc) when provided. +The bos-workspace dev server is specially configured with the near-bos-webcomponent to automatically set the `rpc` attribute with the [proxy-rpc](#proxy-rpc). ## Commands @@ -285,9 +289,9 @@ bw deploy [app name] --deploy-account-id [deployAccountId] --signer-account-id [ * `--signer-account-id ` (Optional): Account which will be used for signing deploy transactions, frequently the same as deploy-account-id. Defaults to `config.account`, or will use `config.accounts.deploy` if specified. -* `--signer-public-key ` (Required): Public key for signing transactions in the format: `ed25519:`. +* `--signer-public-key ` (Optional): Public key for signing transactions in the format: `ed25519:`. Will default to interactive [near-cli-rs](https://github.com/near/near-cli-rs) if not provided. -* `--signer-private-key ` (Required): Private key in `ed25519:` format for signing transactions. +* `--signer-private-key ` (Optional): Private key in `ed25519:` format for signing transactions. Will default to interactive [near-cli-rs](https://github.com/near/near-cli-rs) if not provided. * `-n, --network ` (Optional): Network to deploy for (default: "mainnet").