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;
|
2024-01-20 05:13:28 +00:00
|
|
|
console.log(`[芋道商城 ${version}] http://doc.iocoder.cn`);
|
2022-11-22 07:45:36 +00:00
|
|
|
|
2024-01-20 05:13:28 +00:00
|
|
|
export const apiPath = import.meta.env.SHOPRO_API_PATH;
|
2022-11-22 07:45:36 +00:00
|
|
|
export const staticUrl = import.meta.env.SHOPRO_STATIC_URL;
|
2024-07-25 16:11:07 +00:00
|
|
|
export const tenantId = import.meta.env.SHOPRO_TENANT_ID;
|
2024-06-12 09:05:14 +00:00
|
|
|
export const websocketPath = import.meta.env.SHOPRO_WEBSOCKET_PATH;
|
2024-07-25 16:11:07 +00:00
|
|
|
|
2022-11-22 07:45:36 +00:00
|
|
|
export default {
|
|
|
|
baseUrl,
|
|
|
|
apiPath,
|
|
|
|
staticUrl,
|
2024-07-25 16:11:07 +00:00
|
|
|
tenantId,
|
|
|
|
websocketPath,
|
2022-11-22 07:45:36 +00:00
|
|
|
};
|