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

module.exports = {
  pages: pages,
  assetsDir: process.env.VUE_APP_STATIC_DIR,
  publicPath: process.env.NODE_ENV === "production" ? "" : "",
  productionSourceMap: process.env.NODE_ENV !== "production",
  lintOnSave: false,
  css: {
    loaderOptions: {
      less: {
        globalVars: {
          color: process.env.VUE_APP_MAIN_COLOR || "#05c8ae"
        }
      }
    }
  },
  devServer: {
    inline: false,
    hot: true,
    liveReload: false,
    proxy: {
        '/fcb': {
            target: proxy_url,
            changeOrigin: true,
        },
        '/vr': {
          target: proxy_url,
          changeOrigin: true,
        },
        '/appapi': {
          target: proxy_url,
          changeOrigin: true,
        }
    },
  }
};
