const { defineConfig } = require("@vue/cli-service");

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  assetsDir: "showviewer",
  productionSourceMap: false,
  publicPath: "./",
  pages: {
    // show: "src/pages/show.js",
    showMobile: "src/pages/showMobile.js",
  },
  css: {
    extract: false,
    loaderOptions: {
      scss: {},
    },
  },
  devServer: {
    // port: 443,
    // https: true,
    headers: {
      "Cache-Control": "no-store",
    },
    proxy: {
      "/manage": {
        target: process.env.VUE_APP_URL_FILL + '/',
        changeOrigin: true,
      },
      "/web": {
        target: process.env.VUE_APP_URL_FILL + '/',
        changeOrigin: true,
      },
      "/api": {
        target: process.env.VUE_APP_PROXY_URL_ROOT,
        changeOrigin: true,
      },
    },
  },
});
