Skip to content

Commit fd733ec

Browse files
authored
Ability to set api base url as there are different urls for different clouds and regions (#5)
1 parent 345cce0 commit fd733ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import type {
2727
dotenv.config()
2828

2929
// API configuration
30-
const API_BASE_URL = 'https://api.contentstack.io/v3'
30+
const API_BASE_URL = process.env.CONTENTSTACK_API_BASE_URL || 'https://api.contentstack.io/v3'
3131
const API_KEY = process.env.CONTENTSTACK_API_KEY || ''
3232
const MANAGEMENT_TOKEN = process.env.CONTENTSTACK_MANAGEMENT_TOKEN || ''
3333
const BRANCH = process.env.CONTENTSTACK_BRANCH || ''

0 commit comments

Comments
 (0)