Configuration
This content is for v1. Switch to the latest version for up-to-date documentation.
Pass options as the second argument:
const sahel = new Sahel(process.env.SAHEL_KEY, { timeout: 10_000, retries: 2,});| Option | Default | |
|---|---|---|
timeout |
30000 |
Milliseconds before a request is abandoned. |
retries |
2 |
How many times a request that failed on the network is tried again. |
baseUrl |
https://api.sahel.example |
Point it at a mock server in tests. |