// import { defineConfig } from "vite"; // import react from "@vitejs/plugin-react"; // // export default defineConfig({ // plugins: [react()], // server: { // proxy: { // "/api": { target: "http://localhost:5555", changeOrigin: true }, // "/receive": { target: "http://localhost:5555", changeOrigin: true }, // "/ping": { target: "http://localhost:5555", changeOrigin: true }, // }, // }, // }); import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; export default defineConfig({ plugins: [react()], server: { proxy: { "/api": { target: "http://localhost:5555", changeOrigin: true, secure: false, }, "/receive": { target: "http://localhost:5555", changeOrigin: true, secure: false, }, }, }, });