Updated the vite.config.js

This commit is contained in:
Mathias Wagner 2023-11-12 23:22:36 +01:00
parent 4929baea29
commit 988815a92c
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -1,6 +1,17 @@
import { defineConfig } from "vite";
import {defineConfig} from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
plugins: [react()],
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
"/api": "http://localhost:8671/"
}
}
});