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