31 lines
725 B
TypeScript
31 lines
725 B
TypeScript
const apiBaseUrl = import.meta.env.VITE_API_BASE_URL as string;
|
|
|
|
if (!apiBaseUrl) {
|
|
console.warn("apiBaseUrl environment variable was not set");
|
|
}
|
|
|
|
const environment = import.meta.env.VITE_ENVIRONMENT as string;
|
|
|
|
if (!environment) {
|
|
console.warn("environment environment variable was not set");
|
|
}
|
|
|
|
const envCredential: string | null =
|
|
import.meta.env.VITE_SKYVERN_API_KEY ?? null;
|
|
|
|
const artifactApiBaseUrl = import.meta.env.VITE_ARTIFACT_API_BASE_URL;
|
|
|
|
if (!artifactApiBaseUrl) {
|
|
console.warn("artifactApiBaseUrl environment variable was not set");
|
|
}
|
|
|
|
const apiPathPrefix = import.meta.env.VITE_API_PATH_PREFIX ?? "";
|
|
|
|
export {
|
|
apiBaseUrl,
|
|
environment,
|
|
envCredential,
|
|
artifactApiBaseUrl,
|
|
apiPathPrefix,
|
|
};
|