From 988815a92cb77fca79d396ee65f107a339a0e23f Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 12 Nov 2023 23:22:36 +0100 Subject: [PATCH] Updated the vite.config.js --- vite.config.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index c7a4f78..7975f70 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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/" + } + } }); \ No newline at end of file