sorarebuddy/front/vite.config.ts

22 lines
377 B
TypeScript
Raw Permalink Normal View History

2024-05-23 04:18:54 +00:00
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,
},
},
},
});