Skip to content

Commit

Permalink
fix(TSE-1157): Improve US datacenter documentation and typings (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
Varpuspaavi authored Aug 28, 2023
1 parent 2df36a3 commit e344c66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ Go and checkout [`examples/vue3` directory of **Vue I18n Phrase In-Context Edito

## Using the US Datacenter with ICE

In addition to `phraseEnabled` and `projectId` in the config, also add the US specific URLs to enable working through the US endpoint.
```
baseUrl: "https://us.app.phrase.com",
apiBaseUrl: 'https://api.us.app.phrase.com/api/v2',
oauthEndpointUrl: "https://api.us.app.phrase.com/api/v2/authorizations",
profileUrl: "https://us.app.phrase.com/settings/profile",
In addition to the settings in your config, set the US datacenter to enable it working with the US endpoints.
```js
datacenter: 'us'
```
1 change: 1 addition & 0 deletions src/phrase-config.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type PhraseConfig = {
useOldICE: boolean;
forceLocale: boolean;
loginDialogMessage: string;
datacenter: 'eu' | 'us';
autoLogin: {
perform: boolean;
email: string;
Expand Down

0 comments on commit e344c66

Please sign in to comment.