mall-app-t/peach/config/index.js

21 lines
520 B
JavaScript
Raw Permalink Normal View History

2024-05-22 15:42:13 +08:00
// 开发环境配置
2024-05-29 01:29:31 +08:00
export let baseUrl;
export let version;
if (process.env.NODE_ENV === "development") {
baseUrl = import.meta.env.MALL_DEV_BASE_URL;
2024-05-22 15:42:13 +08:00
} else {
2024-05-29 01:29:31 +08:00
baseUrl = import.meta.env.MALL_BASE_URL;
2024-05-22 15:42:13 +08:00
}
2024-05-29 01:29:31 +08:00
version = import.meta.env.MALL_VERSION;
console.log(`[🍑商城 ${version}] http://ankkaya.top`);
console.log(baseUrl);
2024-05-22 15:42:13 +08:00
2024-05-29 01:29:31 +08:00
export const apiPath = import.meta.env.MALL_API_PATH;
export const staticUrl = import.meta.env.MALL_STATIC_URL;
2024-05-22 15:42:13 +08:00
export default {
2024-05-29 01:29:31 +08:00
baseUrl,
apiPath,
staticUrl,
};