Tasks page implementation (#120)
This commit is contained in:
25
skyvern-frontend/src/util/env.ts
Normal file
25
skyvern-frontend/src/util/env.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
const apiBaseUrl = import.meta.env.VITE_API_BASE_URL as string;
|
||||
|
||||
if (!apiBaseUrl) {
|
||||
console.error("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");
|
||||
}
|
||||
|
||||
const credential = import.meta.env.VITE_API_CREDENTIAL as string;
|
||||
|
||||
if (!credential) {
|
||||
console.error("credential environment variable was not set");
|
||||
}
|
||||
|
||||
const artifactApiBaseUrl = import.meta.env.VITE_ARTIFACT_API_BASE_URL as string;
|
||||
|
||||
if (!artifactApiBaseUrl) {
|
||||
console.error("artifactApiBaseUrl environment variable was not set");
|
||||
}
|
||||
|
||||
export { apiBaseUrl, environment, credential, artifactApiBaseUrl };
|
||||
Reference in New Issue
Block a user