20 lines
498 B
JavaScript
20 lines
498 B
JavaScript
|
// 开发环境配置
|
||
|
export let baseUrl
|
||
|
export let version
|
||
|
if (process.env.NODE_ENV === 'development') {
|
||
|
baseUrl = import.meta.env.MALL_DEV_BASE_URL
|
||
|
} else {
|
||
|
baseUrl = import.meta.env.MALL_BASE_URL
|
||
|
}
|
||
|
version = import.meta.env.MALL_VERSION
|
||
|
console.log(`[🍑商城 ${version}] http://ankkaya.top`)
|
||
|
|
||
|
export const apiPath = import.meta.env.MALL_API_PATH
|
||
|
export const staticUrl = import.meta.env.MALL_STATIC_URL
|
||
|
|
||
|
export default {
|
||
|
baseUrl,
|
||
|
apiPath,
|
||
|
staticUrl,
|
||
|
}
|