mall-uniapp/sheep/config/index.js

20 lines
504 B
JavaScript
Raw Normal View History

2022-11-22 07:45:36 +00:00
// 开发环境配置
export let baseUrl;
2023-02-07 06:01:12 +00:00
export let version;
2022-11-22 07:45:36 +00:00
if (process.env.NODE_ENV === 'development') {
baseUrl = import.meta.env.SHOPRO_DEV_BASE_URL;
} else {
baseUrl = import.meta.env.SHOPRO_BASE_URL;
}
2023-02-07 06:01:12 +00:00
version = import.meta.env.SHOPRO_VERSION;
2023-10-30 10:20:12 +00:00
console.log(`[Shopro ${version}] http://api-dashboard.yudao.iocoder.cn/`);
2022-11-22 07:45:36 +00:00
export const apiPath = import.meta.env.SHOPRO_API_PATH;
export const staticUrl = import.meta.env.SHOPRO_STATIC_URL;
export default {
baseUrl,
apiPath,
staticUrl,
};