This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.
MCDashWrapper/webui/vite.config.js

18 lines
400 B
JavaScript

import {defineConfig} from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
plugins: [react()],
server: {
proxy: {
"/api": "http://localhost:7865",
"/proxy": "http://localhost:7865"
}
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});