const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  productionSourceMap: false,
  assetsDir: "viewer",
  css: {
    extract: false,
    loaderOptions: {
      scss: {},
    },
  },
  devServer: {
    // port: 443,
    https: true,
    // disableHostCheck: true,
    headers: {
      "Cache-Control": "no-store",
    },
    proxy: {
      "/service": {
        // target: "https://v4-test.4dkankan.com/",
        target: process.env.VUE_APP_APIS_URL,
        changeOrigin: true,
      },
      "/api": {
        target: process.env.VUE_APP_APIS_URL,
        changeOrigin: true,
      },
    },
  },
});
