import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";

export default defineConfig({
  base: "/admin/",
  plugins: [vue()],
  build: {
    chunkSizeWarningLimit: 650,
    rollupOptions: {
      output: {
        manualChunks: {
          vue: ["vue", "vue-router"],
          charts: ["echarts", "vue-echarts"],
          icons: ["lucide-vue-next"],
        },
      },
    },
  },
  server: {
    proxy: {
      "/api": "http://127.0.0.1:33550",
    },
  },
});
