// vite.config.js
import { defineConfig, loadEnv } from "file:///D:/work/project/foresightVertures/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/work/project/foresightVertures/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import Components from "file:///D:/work/project/foresightVertures/node_modules/unplugin-vue-components/dist/vite.mjs";
import { VantResolver } from "file:///D:/work/project/foresightVertures/node_modules/unplugin-vue-components/dist/resolvers.mjs";
var vite_config_default = defineConfig(({ mode }) => {
  const { VITE_API_URL, VITE_DOMAIN_URL, VITE_IMG_API_URL, VITE_IMG_DOMAIN_URL } = loadEnv(mode, process.cwd());
  console.log("VITE_IMG_API_URL>>>>", VITE_IMG_DOMAIN_URL);
  return {
    plugins: [
      vue(),
      Components({
        resolvers: [VantResolver()]
      })
    ],
    resolve: {
      alias: {
        "@": "/src"
      }
    },
    server: {
      host: true,
      proxy: {
        [VITE_API_URL]: {
          target: VITE_DOMAIN_URL,
          changeOrigin: true,
          ws: true,
          rewrite: (path) => path.replace(new RegExp(`^${VITE_API_URL}`), "")
        },
        [VITE_IMG_API_URL]: {
          target: VITE_IMG_DOMAIN_URL,
          changeOrigin: true,
          ws: true,
          rewrite: (path) => path.replace(new RegExp(`^${VITE_IMG_API_URL}`), "")
        }
      },
      hmr: {
        overlay: false
      }
    },
    build: {
      rollupOptions: {
        external: [
          "element-plus"
        ]
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFx3b3JrXFxcXHByb2plY3RcXFxcZm9yZXNpZ2h0VmVydHVyZXNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXHdvcmtcXFxccHJvamVjdFxcXFxm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