// vite.config.ts import { defineConfig, loadEnv } from "file:///D:/baozhida/baozhida-panel-module/node_modules/.pnpm/vite@5.3.5_@types+node@20.14.13_sass@1.77.8/node_modules/vite/dist/node/index.js"; import vue from "file:///D:/baozhida/baozhida-panel-module/node_modules/.pnpm/@vitejs+plugin-vue@5.1.1_vite@5.3.5_@types+node@20.14.13_sass@1.77.8__vue@3.4.35_typescript@5.4.5_/node_modules/@vitejs/plugin-vue/dist/index.mjs"; import { resolve } from "path"; var __vite_injected_original_dirname = "D:\\baozhida\\baozhida-panel-module"; var pathSrc = resolve(__vite_injected_original_dirname, "src"); var vite_config_default = defineConfig(({ mode }) => { const config = loadEnv(mode, "./"); return { plugins: [ vue() ], server: { port: 5e3, proxy: { "/api": { target: "http://192.168.11.77:8888", changeOrigin: true, rewrite: (path) => { return path.replace(/\/api/, "/api"); } }, "/app": { target: "http://192.168.11.77:8080", changeOrigin: true, rewrite: (path) => { return path.replace(/\/app/, "/api"); } } } }, resolve: { alias: { "@": pathSrc } } }; }); export { vite_config_default as default }; //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxiYW96aGlkYVxcXFxiYW96aGlkYS1wYW5lbC1tb2R1bGVcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXGJhb3poaWRhXFxcXGJhb3poaWRhLXBhbmVsLW1vZHVsZVxcXFx2aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRDovYmFvemhpZGEvYmFvemhpZGEtcGFuZWwtbW9kdWxlL3ZpdGUuY29uZmlnLnRzXCI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