static-assets-defaults.js 732 B

1234567891011121314151617
  1. /**
  2. * 远程静态资源根(须以 / 结尾)。
  3. *
  4. * 实际取值以 config/env.js 的 APP_ENV 为准;本文件保留具名常量供脚本/文档引用。
  5. *
  6. * 服务器目录:/iflytek/shanxia2.0/app/assets
  7. * Nginx 前缀: /shanxia-static/
  8. *
  9. * 测试:http://121.43.228.102:9911/shanxia-static/
  10. * 生产:https://w.shanxiachem.com/shanxia-static/
  11. */
  12. import { STATIC_ASSETS_BASE_URL } from '@/config/env'
  13. export const STATIC_ASSETS_BASE_URL_TEST = 'http://121.43.228.102:9911/shanxia-static/'
  14. export const STATIC_ASSETS_BASE_URL_PRODUCTION = 'https://w.shanxiachem.com/shanxia-static/'
  15. /** 当前环境解析结果(随 APP_ENV 变化) */
  16. export const STATIC_ASSETS_BASE_URL_DEFAULT = STATIC_ASSETS_BASE_URL