Skip to content

Commit b6b23bc

Browse files
authored
Merge pull request #42 from daanstolpaction/master
Add support for Azure EU region
2 parents ec105d1 + 77386a9 commit b6b23bc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "contentstack-cli-tsgen",
33
"description": "Generate TypeScript typings from a Stack.",
4-
"version": "2.1.5",
4+
"version": "2.1.6",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
77
"dependencies": {

src/lib/stack/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const REGION_URL_MAPPING: RegionUrlMap = {
1111
us: 'cdn.contentstack.io',
1212
eu: 'eu-cdn.contentstack.com',
1313
'azure-na': 'azure-na-cdn.contentstack.com',
14+
'azure-eu': 'azure-eu-cdn.contentstack.com',
1415
}
1516

1617
export type StackConnectionConfig = {
@@ -30,7 +31,7 @@ const queryParams = {
3031

3132
export async function stackConnect(client: any, config: StackConnectionConfig) {
3233
try {
33-
const clientParams: {
34+
const clientParams: {
3435
api_key: string,
3536
delivery_token: string,
3637
environment: string,

0 commit comments

Comments
 (0)