13 lines
326 B
TypeScript
13 lines
326 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
// `npm run dev` proxies /api to the server so the app is same-origin in dev.
|
|
proxy: {
|
|
"/api": { target: "http://localhost:8080", changeOrigin: true },
|
|
},
|
|
},
|
|
});
|