22 lines
377 B
TypeScript
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,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
});
|