You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -878,19 +878,19 @@ In some rare cases, the SDK can fail to get a response from the server or even m
878
878
879
879
### Server Variables
880
880
881
-
The default server `https://{domain}-be.glean.com` contains variables and is set to `https://domain-be.glean.com` by default. To override default values, the following parameters are available when initializing the SDK client instance:
881
+
The default server `https://{instance}-be.glean.com` contains variables and is set to `https://instance-name-be.glean.com` by default. To override default values, the following parameters are available when initializing the SDK client instance:
|`instance`|`instance: string`|`"instance-name"`|The instance name (typically the email domain without the extension) that determines the deployment backend. |
886
886
887
887
#### Example
888
888
889
889
```typescript
890
890
import { Glean } from"@gleanwork/api-client";
891
891
892
892
const glean =newGlean({
893
-
domain: "scared-pearl.biz",
893
+
instance: "<value>",
894
894
apiToken: process.env["GLEAN_API_TOKEN"] ??"",
895
895
});
896
896
@@ -934,7 +934,7 @@ The default server can be overridden globally by passing a URL to the `serverURL
0 commit comments