Turn environment variable errors to warnings (#470)
This commit is contained in:
@@ -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 =
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user