oss.js 371 B

12345
  1. import Vue from 'vue'
  2. // 写到全局常量是因为如果写到env环境, template里面就无法直接写 process.env.***, 这是nuxt的问题
  3. Vue.prototype.$OSS_PREFIX = 'https://mediahub.promocollection.com.au'
  4. Vue.prototype.$OSS_S3_PREFIX = 'https://promocollection.s3.ap-southeast-2.amazonaws.com'
  5. Vue.prototype.$mediaRegExp = /^(https?:)?\/\/.+(.com.au\/|.com\/)/