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