index.js 576 B

1234567891011121314151617181920
  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. console.log(`[芋道商城 ${version}] http://doc.iocoder.cn`);
  11. export const apiPath = import.meta.env.SHOPRO_API_PATH;
  12. export const staticUrl = import.meta.env.SHOPRO_STATIC_URL;
  13. export const websocketPath = import.meta.env.SHOPRO_WEBSOCKET_PATH;
  14. export default {
  15. baseUrl,
  16. apiPath,
  17. staticUrl,
  18. websocketPath
  19. };