// src/config/imagePaths.js
export const OSS_BASE_URL =
  process.env.NODE_ENV === 'development'
    ? '/oss/h5/Azizi/' // 开发环境使用代理
    : 'https://tkm-likei.oss-ap-southeast-1.aliyuncs.com/h5/Azizi/' // 生产环境直接访问

// 组合使用示例
export const getPngUrl = (imagePath, filename) => {
  return `${OSS_BASE_URL}${imagePath}${filename}.png`
}

export const getWebpUrl = (imagePath, filename) => {
  return `${OSS_BASE_URL}${imagePath}${filename}.webp`
}
