Skip to content

Commit 0162251

Browse files
committed
feat: allow overriding checkly base url [kit-00]
1 parent 94c7bfb commit 0162251

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/cli/src/services/config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ class ChecklyConfig {
7878
}
7979

8080
getApiUrl (): string {
81+
// Allow overriding the API URL via CHECKLY_BASE_URL environment variable
82+
if (process.env.CHECKLY_BASE_URL) {
83+
return process.env.CHECKLY_BASE_URL
84+
}
85+
8186
const environments = {
8287
local: 'http://127.0.0.1:3000',
8388
development: 'https://api-dev.checklyhq.com',

0 commit comments

Comments
 (0)