const isEmpty = ( value ) : value is undefined => value === undefined || value === '' ; const getEnv = ( envName ) : string => { const env = process . env [ envName ] ; if ( isEmpty ( env ) ) { throw new Error ( `Required environment variable ${ envName } is not defined or empty` ) ; } return env ; } ; export const BASE_URL = getEnv ( 'VUE_APP_BASE_URL' ) ; export const STORAGE_SERVICE_URL = getEnv ( 'VUE_APP_STORAGE_SERVICE_URL' ) ; export const ADAPTER_SERVICE_URL = getEnv ( 'VUE_APP_ADAPTER_SERVICE_URL' ) ; export const PIPELINE_SERVICE_URL = getEnv ( 'VUE_APP_PIPELINE_SERVICE_URL' ) ; export const NOTIFICATION_SERVICE_URL = getEnv ( 'VUE_APP_NOTIFICATION_SERVICE_URL' ) ; export const SCHEMA_SERVICE_URL = getEnv ( 'VUE_APP_SCHEMA_SERVICE_URL' ) ;