add envision-cli 0.0.6
This commit is contained in:
@@ -3,7 +3,16 @@ import { getConfig } from './get-config.ts';
|
||||
const config = getConfig();
|
||||
export const baseURL = config?.baseURL || 'https://envision.xiongxiao.me';
|
||||
export const getBaseURL = () => {
|
||||
if (config?.dev) {
|
||||
if (typeof config?.dev === 'undefined') {
|
||||
return baseURL;
|
||||
}
|
||||
if (typeof config?.dev === 'string') {
|
||||
if (config?.dev === 'true') {
|
||||
return 'http://localhost:4002';
|
||||
}
|
||||
return baseURL;
|
||||
}
|
||||
if (config?.dev === true) {
|
||||
return 'http://localhost:4002';
|
||||
}
|
||||
return baseURL;
|
||||
|
||||
Reference in New Issue
Block a user