2024-02-13 14:47:36 +01:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import react from "@vitejs/plugin-react-swc";
|
2024-02-12 12:47:46 +01:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [react()],
|
2024-02-20 15:27:15 +01:00
|
|
|
// build: {
|
|
|
|
// outDir: '../server/public' // Override default outDir('dist')
|
|
|
|
// },
|
|
|
|
server: {
|
|
|
|
port: 3000,
|
|
|
|
open: true,
|
|
|
|
proxy: {
|
|
|
|
"/api": {
|
|
|
|
target: "http://localhost:8080/api",
|
|
|
|
changeOrigin: true,
|
|
|
|
secure: false,
|
|
|
|
rewrite: (path): string => path.replace(/^\/api/, ""),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-13 14:47:36 +01:00
|
|
|
});
|