Files
SkyMoney/web/vite.config.ts
Ricearoni1245 72334b2583
All checks were successful
Deploy / deploy (push) Successful in 2m2s
Security Tests / security-non-db (push) Successful in 20s
Security Tests / security-db (push) Successful in 24s
ui fixes, input fixes, better dev workflow
2026-03-10 23:01:44 -05:00

23 lines
551 B
TypeScript

import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
const proxyTarget = env.VITE_PROXY_TARGET || "http://localhost:8081";
return {
plugins: [react(), tailwindcss()],
server: {
proxy: {
"/api": {
target: proxyTarget,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
},
},
},
};
});