TRIGGER_API_KEY -> TRIGGER_SECRET_KEY in v3
This commit is contained in:
@@ -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
|
||||
: {}),
|
||||
|
||||
@@ -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 = "";
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user