Skip to content

Commit

Permalink
remove env var config for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaaash committed Apr 29, 2022
1 parent 5fc1926 commit d35786d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
20 changes: 2 additions & 18 deletions point-of-sale/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,29 +141,13 @@ Import the forked repository from GitHub.
### 3. Configure project

Configure the project as follows:

![](./setup/4.Configuration.png)

Choose `point-of-sale` as the root directory:

![](./setup/3.Root_directory.png)

<details>
<summary>Environment variables:</summary>

You can configure the environment variables to customize your app.

```
# Default values
CLUSTER_ENDPOINT=https://api.devnet.solana.com
RATE_LIMIT=10
RATE_LIMIT_INTERVAL=60
```

![](./setup/5.Environment_variables.png)
Configure the project as follows:

</details>
![](./setup/4.Configuration.png)

### Deploy project

Expand Down
Binary file removed point-of-sale/setup/5.Environment_variables.png
Binary file not shown.
2 changes: 1 addition & 1 deletion point-of-sale/src/server/core/env.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const CLUSTER_ENDPOINT = process.env.CLUSTER_ENDPOINT;
export const CLUSTER_ENDPOINT = process.env.CLUSTER_ENDPOINT || 'https://api.devnet.solana.com';
export const RATE_LIMIT = Number(process.env.RATE_LIMIT) || undefined;
export const RATE_LIMIT_INTERVAL = Number(process.env.RATE_LIMIT_INTERVAL) || undefined;

0 comments on commit d35786d

Please sign in to comment.