From ea7e245980ad2ba1745f7391599c2229c0c65e34 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Thu, 15 Feb 2024 00:50:08 +0100 Subject: [PATCH] Updated the vite.config.js --- webui/vite.config.js | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/webui/vite.config.js b/webui/vite.config.js index 5a33944..3e3465b 100644 --- a/webui/vite.config.js +++ b/webui/vite.config.js @@ -1,7 +1,18 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import {defineConfig} from "vite"; +import react from "@vitejs/plugin-react"; +import path from "path"; -// https://vitejs.dev/config/ export default defineConfig({ - plugins: [react()], -}) + plugins: [react()], + server: { + proxy: { + "/api": "http://localhost:7865", + "/proxy": "http://localhost:7865" + } + }, + resolve: { + alias: { + "@": path.resolve(__dirname, "./src"), + }, + }, +}); \ No newline at end of file