This commit is contained in:
simon.franken
2026-02-16 17:12:47 +01:00
parent a9228d19c8
commit fc06dac40e
11 changed files with 49 additions and 46 deletions

View File

@@ -2,22 +2,16 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
const backend = "http://127.0.0.1:3001";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
port: 5173,
proxy: {
"/api": {
target: backend,
changeOrigin: true,
export default defineConfig(() => {
return {
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
},
server: {
port: 5173,
},
};
});