File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ function useDev({
408
408
dependencies,
409
409
env : {
410
410
TRIGGER_API_URL : apiUrl ,
411
- TRIGGER_API_KEY : apiKey ,
411
+ TRIGGER_SECRET_KEY : apiKey ,
412
412
...( environmentVariablesResponse . success
413
413
? environmentVariablesResponse . data . variables
414
414
: { } ) ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const logger = new SimpleLogger(`[${MACHINE_NAME}][${SHORT_HASH}]`);
19
19
20
20
class ProdWorker {
21
21
private apiUrl = process . env . TRIGGER_API_URL ! ;
22
- private apiKey = process . env . TRIGGER_API_KEY ! ;
22
+ private apiKey = process . env . TRIGGER_SECRET_KEY ! ;
23
23
private contentHash = process . env . TRIGGER_CONTENT_HASH ! ;
24
24
private projectDir = process . env . TRIGGER_PROJECT_DIR ! ;
25
25
private projectRef = process . env . TRIGGER_PROJECT_REF ! ;
@@ -45,7 +45,7 @@ class ProdWorker {
45
45
projectDir : this . projectDir ,
46
46
env : {
47
47
TRIGGER_API_URL : this . apiUrl ,
48
- TRIGGER_API_KEY : this . apiKey ,
48
+ TRIGGER_SECRET_KEY : this . apiKey ,
49
49
} ,
50
50
contentHash : this . contentHash ,
51
51
} ) ;
Original file line number Diff line number Diff line change 1
1
import { logger } from "./logger.js" ;
2
2
3
- type VariableNames = "TRIGGER_API_URL" | "TRIGGER_API_KEY " | "TRIGGER_LOG_LEVEL" ;
3
+ type VariableNames = "TRIGGER_API_URL" | "TRIGGER_SECRET_KEY " | "TRIGGER_LOG_LEVEL" ;
4
4
5
5
type DeprecatedNames = "" ;
6
6
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export class ApiClientManager {
78
78
79
79
get accessToken ( ) : string | undefined {
80
80
const store = this . #getStore( ) ;
81
- return store ?. accessToken ?? getEnvVar ( "TRIGGER_API_KEY " ) ;
81
+ return store ?. accessToken ?? getEnvVar ( "TRIGGER_SECRET_KEY " ) ;
82
82
}
83
83
84
84
get client ( ) : ApiClient | undefined {
You can’t perform that action at this time.
0 commit comments