const { defineConfig } = require("@vue/cli-service");
const path = require("path");
module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {
    resolve: {
      alias: {
        "@": path.resolve(__dirname, "src"),
      },
    },
  },
  devServer: {
    proxy: {
      "/file": {
        target: process.env.VUE_APP_API_BASE_URL,
        changeOrigin: true,
        // pathRewrite:{
        //   "^/file": "",
        // }
      },
      "/uploads": {
        target: process.env.VUE_APP_API_BASE_URL,
        changeOrigin: true,
        // pathRewrite:{
        //   "^/file": "",
        // }
      },
    },
  },
});
