import path from "path"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; export default defineConfig({ plugins: [react()], server: { port: 3000, host: true, allowedHosts: ["localhost", "127.0.0.1", "advx.martinsevieira.adv.br"], proxy: { "/api": { target: "http://localhost:5000", changeOrigin: true, secure: false, }, }, hmr: { // Configuração do HMR host: "advx.martinsevieira.adv.br", protocol: "wss", clientPort: 443, overlay: true, }, }, css: { postcss: { plugins: [require("tailwindcss"), require("autoprefixer")], }, }, define: { "process.env": process.env, }, });