项目初始化
This commit is contained in:
23
sheep/config/index.js
Normal file
23
sheep/config/index.js
Normal file
@@ -0,0 +1,23 @@
|
||||
// 开发环境配置
|
||||
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}]`);
|
||||
|
||||
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,
|
||||
};
|
Reference in New Issue
Block a user