Skip to content

Commit 27382ce

Browse files
mackenlykodster28
andauthored
Update load-custom-managed-component.md to include the worker prefix (cloudflare#12800)
* Update load-custom-managed-component.md to include the worker prefix * Update load-custom-managed-component.md to include hyphen in prefix * Small edit to re-trigger Compiles --------- Co-authored-by: Kody Jackson <[email protected]>
1 parent 8c71814 commit 27382ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/zaraz/advanced/load-custom-managed-component.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export default async function (manager) {
4444
## Deploy a Managed Component to Cloudflare
4545

4646
1. Open a terminal in your Managed Component’s root directory.
47-
2. From there, run `npx managed-component-to-cloudflare-worker ./index.js my-new-counter-mc`, which will deploy the Managed Component to a specialized Cloudflare Worker. Change the path to your `index.js`. You can also rename the Component if you choose.
48-
3. Your Managed Component should now be [visible on your account](https://dash.cloudflare.com/redirect?account=/workers-and-pages) as a Cloudflare Worker prefixed with `custom-mc`.
47+
2. From there, run `npx managed-component-to-cloudflare-worker ./index.js my-new-counter-mc`, which will deploy the Managed Component to a specialized Cloudflare Worker. Change the path to your `index.js`. You can also rename the Component.
48+
3. Your Managed Component should now be [visible on your account](https://dash.cloudflare.com/redirect?account=/workers-and-pages) as a Cloudflare Worker prefixed with `custom-mc-`.
4949

5050
## Configure a Managed Component in Cloudflare
5151

@@ -56,7 +56,7 @@ As with regular tools, it is recommended that you [create the triggers](/zaraz/g
5656
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select your account and domain.
5757
2. Select **Zaraz** > **Tools Configuration** > [**Third-party tools**](https://dash.cloudflare.com/?to=/:account/:zone/zaraz/tools-config/tools/catalog).
5858
3. Select **Add new tool** and choose **Custom Managed Component** from the tools library page. Select **Continue** to confirm your selection.
59-
4. In **Select Custom MC**, choose a Custom Managed Component that you have deployed to your account, such as `my-new-counter-mc`. Select **Continue**.
59+
4. In **Select Custom MC**, choose a Custom Managed Component that you have deployed to your account, such as `custom-mc-my-new-counter-mc`. Select **Continue**.
6060
5. In **Permissions**, select the permissions you want to grant the Custom Managed Component. If you run an untrusted Managed Component, pay close attention to what permissions you are granting. Select **Continue**.
6161
6. In **Set up**, configure the settings for your new tool. The information you need to enter will depend on the code of the Managed Component. You can add settings and default fields, as well as use [variables you have previously set up](/zaraz/get-started/create-variables/).
6262
7. Select **Save**.

0 commit comments

Comments
 (0)