You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
856 B
30 lines
856 B
// 开发环境配置
|
|
export let baseUrl;
|
|
export let version;
|
|
if (process.env.NODE_ENV === 'development') {
|
|
// baseUrl = import.meta.env.SHOPRO_DEV_BASE_URL;
|
|
baseUrl = 'https://www.zhongkexiangjiu.com.cn';
|
|
} else {
|
|
// baseUrl = import.meta.env.SHOPRO_BASE_URL; https://v3.shopro.top https://b1.njrenzhou.com
|
|
baseUrl = 'https://www.zhongkexiangjiu.com.cn';
|
|
}
|
|
// version = import.meta.env.SHOPRO_VERSION;
|
|
version = 'v3.0.0';
|
|
|
|
if (typeof baseUrl === 'undefined') {
|
|
console.error('请检查.env配置文件是否存在');
|
|
} else {
|
|
console.log(`[Shopro ${version}] https://www.sheepjs.com/`);
|
|
}
|
|
|
|
// export const apiPath = import.meta.env.SHOPRO_API_PATH;
|
|
export const apiPath = '/addons/shopro/';
|
|
|
|
// export const staticUrl = import.meta.env.SHOPRO_STATIC_URL;
|
|
export const staticUrl = '';
|
|
|
|
export default {
|
|
baseUrl,
|
|
apiPath,
|
|
staticUrl,
|
|
};
|
|
|