Skip to content

Commit

Permalink
Turn environment variable errors to warnings (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
msalihaltun committed Jun 13, 2024
1 parent 3d2cd67 commit 862cdf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions skyvern-frontend/src/util/env.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const apiBaseUrl = import.meta.env.VITE_API_BASE_URL as string;

if (!apiBaseUrl) {
console.error("apiBaseUrl environment variable was not set");
console.warn("apiBaseUrl environment variable was not set");
}

const environment = import.meta.env.VITE_ENVIRONMENT as string;

if (!environment) {
console.error("environment environment variable was not set");
console.warn("environment environment variable was not set");
}

const envCredential: string | null =
Expand All @@ -16,7 +16,7 @@ const envCredential: string | null =
const artifactApiBaseUrl = import.meta.env.VITE_ARTIFACT_API_BASE_URL;

if (!artifactApiBaseUrl) {
console.error("artifactApiBaseUrl environment variable was not set");
console.warn("artifactApiBaseUrl environment variable was not set");
}

export { apiBaseUrl, environment, envCredential, artifactApiBaseUrl };

0 comments on commit 862cdf1

Please sign in to comment.