// vite.config.js
import { defineConfig } from "file:///C:/Users/33520/Desktop/%E5%88%B6%E5%BA%A6%E6%96%87%E4%BB%B6%E7%AE%A1%E7%90%86%E5%AD%A6%E4%B9%A0AI%E6%99%BA%E8%83%BD%E4%BD%93%20vue%E7%89%88%E6%9C%AC/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/33520/Desktop/%E5%88%B6%E5%BA%A6%E6%96%87%E4%BB%B6%E7%AE%A1%E7%90%86%E5%AD%A6%E4%B9%A0AI%E6%99%BA%E8%83%BD%E4%BD%93%20vue%E7%89%88%E6%9C%AC/node_modules/@vitejs/plugin-vue/dist/index.mjs";
var vite_config_default = defineConfig({
  plugins: [vue()],
  // 生产环境基础路径（服务器访问根目录，必须写 ./）
  base: "./",
  resolve: {
    alias: {
      "@": "/src"
    }
  },
  // 优化依赖配置
  optimizeDeps: {
    include: ["vue", "axios", "ant-design-vue", "xlsx", "marked", "highlight.js", "docx-preview", "file-saver", "epubjs"]
  },
  // 本地开发代理（仅本地生效，打包后自动忽略）
  server: {
    port: 5173,
    strictPort: false,
    host: "localhost",
    proxy: {
      "/api": {
        target: "http://localhost:8080",
        changeOrigin: true,
        configure: (proxy) => {
          proxy.on("proxyReq", (proxyReq) => {
            proxyReq.setTimeout(0);
          });
        },
        proxyTimeout: 0
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFwzMzUyMFxcXFxEZXNrdG9wXFxcXFx1NTIzNlx1NUVBNlx1NjU4N1x1NEVGNlx1N0JBMVx1NzQwNlx1NUI2Nlx1NEU2MEFJXHU2NjdBXHU4MEZEXHU0RjUzIHZ1ZVx1NzI0OFx1NjcyQ1wiO2N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