2025-11-20 19:09:43 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
|
import { tanstackRouter } from "@tanstack/router-plugin/vite";
|
|
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
|
|
|
|
export default defineConfig({
|
2025-12-11 10:52:13 +00:00
|
|
|
base: "/bayiq",
|
2025-11-20 19:09:43 +00:00
|
|
|
plugins: [
|
|
|
|
|
tanstackRouter({
|
|
|
|
|
target: "react",
|
|
|
|
|
autoCodeSplitting: true,
|
|
|
|
|
}),
|
|
|
|
|
react(),
|
|
|
|
|
tailwindcss(),
|
|
|
|
|
],
|
2025-12-02 13:45:44 +00:00
|
|
|
server: {
|
|
|
|
|
proxy: {
|
|
|
|
|
"/api": {
|
|
|
|
|
target: "http://100.115.125.56",
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-11-20 19:09:43 +00:00
|
|
|
});
|