From cf77a141aedc18139087693e2119bf67b8199c66 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sat, 20 Jul 2024 12:57:03 +0200 Subject: [PATCH] Create vite.config.js --- dashboard/vite.config.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 dashboard/vite.config.js diff --git a/dashboard/vite.config.js b/dashboard/vite.config.js new file mode 100644 index 0000000..658ce31 --- /dev/null +++ b/dashboard/vite.config.js @@ -0,0 +1,22 @@ +import {defineConfig} from "vite"; +import path from "path"; +import react from "@vitejs/plugin-react"; + +export default defineConfig({ + plugins: [react()], + resolve: { + alias: { + "@contexts": path.resolve(__dirname, "./src/common/contexts"), + "@components": path.resolve(__dirname, "./src/common/components"), + "@states": path.resolve(__dirname, "./src/states"), + "@": path.resolve(__dirname, "./src"), + } + }, + server: { + proxy: { + "/api": { + target: "http://localhost:8025" + } + } + } +}); \ No newline at end of file