2026-03-07 11:55:18 +05:30
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
import react from "@vitejs/plugin-react-swc";
|
|
|
|
|
import path from "path";
|
|
|
|
|
import { componentTagger } from "lovable-tagger";
|
|
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
|
export default defineConfig(({ mode }) => ({
|
|
|
|
|
server: {
|
|
|
|
|
host: "::",
|
|
|
|
|
port: 8080,
|
|
|
|
|
hmr: {
|
|
|
|
|
overlay: false,
|
|
|
|
|
},
|
|
|
|
|
proxy: {
|
2026-03-15 00:25:55 +05:30
|
|
|
'/accounts/api': {
|
|
|
|
|
target: 'http://0.0.0.0:8000',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
secure: false,
|
|
|
|
|
},
|
|
|
|
|
'/partner': {
|
|
|
|
|
target: 'http://0.0.0.0:8000',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
secure: false,
|
|
|
|
|
},
|
2026-03-07 11:55:18 +05:30
|
|
|
'/api': {
|
|
|
|
|
target: 'https://uat.eventifyplus.com',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
secure: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
plugins: [react(), mode === "development" && componentTagger()].filter(Boolean),
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
"@": path.resolve(__dirname, "./src"),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}));
|