// const proxy_url = process.env.VUE_APP_PROXY_URL || 'http://8.135.98.231:8084'
const proxy_url = process.env.VUE_APP_PROXY_URL || 'https://fcb.test.4dkankan.com'
// https://vr-web01-uat.fcb.com.cn/
let pages = {
  edit: 'src/pages/edit.js',
  show: 'src/pages/show.js',
  showMobile: 'src/pages/showMobile.js',
  vr: 'src/pages/vr.js',
  material: 'src/pages/material.js'
}

module.exports = {
  pages: pages,
  assetsDir: process.env.VUE_APP_STATIC_DIR,
  publicPath: process.env.NODE_ENV === "production" ? "/panorama/" : "",
  productionSourceMap: process.env.NODE_ENV !== "production",
  lintOnSave: false,
  css: {
    loaderOptions: {
      less: {
        globalVars: {
          // TODO: 很多地方没用这个变量而用了字面值
          color: process.env.VUE_APP_MAIN_COLOR || "#0076F6"
        }
      }
    }
  },
  devServer: {
    inline: false,
    hot: true,
    liveReload: false,
    proxy: {
        '/manage': {
            target: proxy_url,
            changeOrigin: true,
        },
        '/web': {
          target: proxy_url,
          changeOrigin: true,
        }
    },
  }
};
