2024-08-07 10:31:42 +08:00
|
|
|
// 开发环境配置
|
|
|
|
export let baseUrl;
|
|
|
|
export let version;
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
baseUrl = import.meta.env.SHOPRO_DEV_BASE_URL;
|
|
|
|
} else {
|
|
|
|
baseUrl = import.meta.env.SHOPRO_BASE_URL;
|
|
|
|
}
|
|
|
|
version = import.meta.env.SHOPRO_VERSION;
|
|
|
|
console.log(`[芋道商城 ${version}] http://doc.iocoder.cn`);
|
|
|
|
|
|
|
|
export const apiPath = import.meta.env.SHOPRO_API_PATH;
|
|
|
|
export const staticUrl = import.meta.env.SHOPRO_STATIC_URL;
|
|
|
|
export const websocketPath = import.meta.env.SHOPRO_WEBSOCKET_PATH;
|
2024-11-11 17:34:11 +08:00
|
|
|
export const kefuPath = import.meta.env.SHOPRO_KEFU_PATH;
|
2024-08-07 10:31:42 +08:00
|
|
|
export default {
|
|
|
|
baseUrl,
|
|
|
|
apiPath,
|
|
|
|
staticUrl,
|
2024-08-07 21:40:27 +08:00
|
|
|
websocketPath,
|
2024-11-11 17:34:11 +08:00
|
|
|
kefuPath
|
2024-08-07 10:31:42 +08:00
|
|
|
};
|