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.
24 lines
681 B
24 lines
681 B
// 开发环境配置
|
|
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`);
|
|
console.log(baseUrl,'baseUrl')
|
|
export const apiPath = import.meta.env.SHOPRO_API_PATH;
|
|
export const staticUrl = import.meta.env.SHOPRO_STATIC_URL;
|
|
export const tenantId = import.meta.env.SHOPRO_TENANT_ID;
|
|
export const websocketPath = import.meta.env.SHOPRO_WEBSOCKET_PATH;
|
|
|
|
export default {
|
|
baseUrl,
|
|
apiPath,
|
|
staticUrl,
|
|
tenantId,
|
|
websocketPath,
|
|
};
|