UNPKG

ll-package

Version:

2 lines (1 loc) 621 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../utils/log.js"),l=require("../utils/env.js"),_=()=>{const{VITE_GLOB_APP_TITLE:t,VITE_GLOB_API_URL:e,VITE_GLOB_APP_SHORT_NAME:r,VITE_GLOB_API_URL_PREFIX:n,VITE_GLOB_WEBSOCKET_URL:i}=l.getAppEnvConfig();return/[a-zA-Z\_]*/.test(r)||o.warn("VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running."),{title:t,apiUrl:e,shortName:r,urlPrefix:n,uploadUrl:e+"/api/file/Uploader",webSocketUrl:i,filePreviewServer:e+"/FileServer"}};exports.useGlobSetting=_;