pronounscc/vite.config.ts

18 lines
370 B
TypeScript
Raw Normal View History

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
root: "frontend",
plugins: [react()],
server: {
proxy: {
"/api": {
// assumes port 8080 in .env for development
target: "http://localhost:8080",
changeOrigin: true,
},
},
},
});