@atelierlogos/hotcross 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,10 +6,6 @@ Developer-friendly & type-safe Typescript SDK specifically catered to leverage *
|
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
<br /><br />
|
|
10
|
-
> [!IMPORTANT]
|
|
11
|
-
> This SDK is not yet ready for production use. To complete setup please follow the steps outlined in your [workspace](https://app.speakeasy.com/org/usenabla/dev). Delete this section before > publishing to a package manager.
|
|
12
|
-
|
|
13
9
|
<!-- Start Summary [summary] -->
|
|
14
10
|
## Summary
|
|
15
11
|
|
|
@@ -353,12 +349,14 @@ run();
|
|
|
353
349
|
|
|
354
350
|
### Override Server URL Per-Client
|
|
355
351
|
|
|
356
|
-
The default server can be overridden globally by
|
|
352
|
+
The default server can be overridden globally by supplying the `serverVariables.server` value (or setting `serverURL`) when initializing the SDK client instance. For example:
|
|
357
353
|
```typescript
|
|
358
354
|
import { Hotcross } from "hotcross";
|
|
359
355
|
|
|
360
356
|
const hotcross = new Hotcross({
|
|
361
|
-
|
|
357
|
+
serverVariables: {
|
|
358
|
+
server: process.env["HOTCROSS_SERVER_URL"] ?? "http://localhost:5143",
|
|
359
|
+
},
|
|
362
360
|
bearerAuth: process.env["HOTCROSS_BEARER_AUTH"] ?? "",
|
|
363
361
|
});
|
|
364
362
|
|