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