| 12345678910111213141516171819202122232425 |
- import { resolve } from "path";
- import { defineConfig } from "vite";
- import react from "@vitejs/plugin-react";
- export default defineConfig({
- plugins: [react()],
- build: {
- rollupOptions: {
- input: {
- main: resolve(__dirname, "index.html"),
- categoryTree: resolve(__dirname, "category-tree.html"),
- },
- },
- },
- server: {
- host: "0.0.0.0",
- port: 5173,
- proxy: {
- "/demand/api/v1": {
- target: "http://localhost:8000",
- changeOrigin: true
- }
- }
- }
- });
|