Skip to content

Commit 82571aa

Browse files
authored
fix: standardize API URL env var references to TUSK_API_URL (#161)
1 parent 509a5e7 commit 82571aa

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Testing auth to Tusk dev:
115115
- `TUSK_AUTH0_DOMAIN`
116116
- `TUSK_AUTH0_CLIENT_ID`
117117

118-
By default, if there's a `.tusk/config.yaml` we'll use the API url in that for all Tusk Cloud requests. If no `.tusk/config.yaml` is found, we'll use the default API url (prod API url). You can override this by setting `TUSK_CLOUD_API_URL` in your shell.
118+
By default, if there's a `.tusk/config.yaml` we'll use the API url in that for all Tusk Cloud requests. If no `.tusk/config.yaml` is found, we'll use the default API url (prod API url). You can override this by setting `TUSK_API_URL` in your shell.
119119

120120
### Disabling analytics
121121

internal/agent/proxy_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
// - TUSK_PROXY_TEST_API_KEY: Tusk API key for authentication (does not expire)
2323
//
2424
// Optional environment variables:
25-
// - TUSK_CLOUD_API_URL: Override the backend URL (defaults to https://api.usetusk.ai)
25+
// - TUSK_API_URL: Override the backend URL (defaults to https://api.usetusk.ai)
2626
//
2727
// This test uses validate-only mode (x-tusk-validate-only header) to avoid
2828
// Anthropic API calls and associated costs. It only validates that the system

internal/api/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ const (
7171
)
7272

7373
// GetBaseURL returns the API base URL with the following priority:
74-
// 1. TUSK_CLOUD_API_URL environment variable
74+
// 1. TUSK_API_URL environment variable
7575
// 2. tusk_api.url from .tusk/config.yaml
7676
// 3. Default URL (https://api.usetusk.ai)
7777
func GetBaseURL() string {
78-
if envURL := os.Getenv("TUSK_CLOUD_API_URL"); envURL != "" {
78+
if envURL := os.Getenv("TUSK_API_URL"); envURL != "" {
7979
return envURL
8080
}
8181

0 commit comments

Comments
 (0)