This template provides a minimal setup to get Vue working in Vite with HMR and Brahma-Firelight (A Rust based high speed server writen on top of TOKIO & HYPER)
npm install
npm run build
npm run devimport { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
proxy: {
"/api": {
target: "http://localhost:2000", // your backend port
changeOrigin: true,
secure: false,
},
},
},
});