Skip to content

Commit

Permalink
docs(chore): remove spacing, change 'node' -> Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Jan 4, 2022
1 parent bae672e commit 1241827
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions website/docs/how-to/how-to-use-custom-strategies.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Front-end client SDKs don't evaluate strategies directly, so you need to impleme
Strategies are stored in separate JavaScript files and loaded into the container at startup. Refer to [the Unleash Proxy documentation](../sdks/unleash-proxy.md) for a full overview of all the options.

1. **Create a strategies directory.** Create a directory that Docker has access to where you can store your strategies. The next steps assume you called it `strategies`
2. **Initialize a node project** and **install the Unleash Client**:
2. **Initialize a Node.js project** and **install the Unleash Client**:

``` shell
npm init -y && \
Expand Down Expand Up @@ -131,13 +131,10 @@ Strategies are stored in separate JavaScript files and loaded into the container
-p 3000:3000 --network unleash unleashorg/unleash-proxy
```

#### When running the proxy with node {#step-3-b-node}
#### When running the proxy with Node.js {#step-3-b-node}

The Unleash Proxy accepts a `customStrategies` property as part of its initialization options. Use this to pass it initialized strategies.




1. **Install the `unleash-client` package**. You'll need this to implement the custom strategy:

``` shell
Expand Down

0 comments on commit 1241827

Please sign in to comment.