- import { defineConfig } from "vite";
- import react from "@vitejs/plugin-react";
- // https://vite.dev/config/
- export default defineConfig({
- server: {
- port: 80,
- proxy: {
- "/api": {
- target: "https://jmpteixeira.myasustor.com:3001",
- changeOrigin: true,
- rewrite: (path) => path.replace(/^\/api/, ""),
- },
- },
- },
- plugins: [react()],
- });