index.js 441 B

12345678910111213141516171819
  1. // 开发环境配置
  2. export let baseUrl;
  3. export let version;
  4. if (process.env.NODE_ENV === 'development') {
  5. baseUrl = import.meta.env.SHOPRO_DEV_BASE_URL;
  6. } else {
  7. baseUrl = import.meta.env.SHOPRO_BASE_URL;
  8. }
  9. version = import.meta.env.SHOPRO_VERSION;
  10. export const apiPath = import.meta.env.SHOPRO_API_PATH;
  11. export const staticUrl = import.meta.env.SHOPRO_STATIC_URL;
  12. export default {
  13. baseUrl,
  14. apiPath,
  15. staticUrl,
  16. };