TRIGGER_API_KEY -> TRIGGER_SECRET_KEY in v3

This commit is contained in:
Eric Allam
2024-03-04 15:47:58 +00:00
parent b7845685eb
commit 64401ee8ec
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -408,7 +408,7 @@ function useDev({
dependencies,
env: {
TRIGGER_API_URL: apiUrl,
TRIGGER_API_KEY: apiKey,
TRIGGER_SECRET_KEY: apiKey,
...(environmentVariablesResponse.success
? environmentVariablesResponse.data.variables
: {}),
+2 -2
View File
@@ -19,7 +19,7 @@ const logger = new SimpleLogger(`[${MACHINE_NAME}][${SHORT_HASH}]`);
class ProdWorker {
private apiUrl = process.env.TRIGGER_API_URL!;
private apiKey = process.env.TRIGGER_API_KEY!;
private apiKey = process.env.TRIGGER_SECRET_KEY!;
private contentHash = process.env.TRIGGER_CONTENT_HASH!;
private projectDir = process.env.TRIGGER_PROJECT_DIR!;
private projectRef = process.env.TRIGGER_PROJECT_REF!;
@@ -45,7 +45,7 @@ class ProdWorker {
projectDir: this.projectDir,
env: {
TRIGGER_API_URL: this.apiUrl,
TRIGGER_API_KEY: this.apiKey,
TRIGGER_SECRET_KEY: this.apiKey,
},
contentHash: this.contentHash,
});
@@ -1,6 +1,6 @@
import { logger } from "./logger.js";
type VariableNames = "TRIGGER_API_URL" | "TRIGGER_API_KEY" | "TRIGGER_LOG_LEVEL";
type VariableNames = "TRIGGER_API_URL" | "TRIGGER_SECRET_KEY" | "TRIGGER_LOG_LEVEL";
type DeprecatedNames = "";
+1 -1
View File
@@ -78,7 +78,7 @@ export class ApiClientManager {
get accessToken(): string | undefined {
const store = this.#getStore();
return store?.accessToken ?? getEnvVar("TRIGGER_API_KEY");
return store?.accessToken ?? getEnvVar("TRIGGER_SECRET_KEY");
}
get client(): ApiClient | undefined {