sorarebuddy/front/vite.config.ts
2024-05-23 08:18:54 +04:00

22 lines
377 B
TypeScript

import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": "/src",
},
},
server: {
proxy: {
"/api": {
target: "http://localhost:8080",
secure: false,
changeOrigin: true,
},
},
},
});