roosterwijs/frontend/vite.config.js

14 lines
350 B
JavaScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// Dev-server draait op poort 5173 en stuurt /api door naar Django (poort 8000).
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
"/api": "http://localhost:8000",
"/media": "http://localhost:8000",
},
},
});