import vue from "@vitejs/plugin-vue"; import { defineConfig, loadEnv } from "vite"; export default defineConfig(({ mode }) => { const env = loadEnv(mode, ".", ""); return { plugins: [vue()], resolve: { alias: { "@": new URL("./src", import.meta.url).pathname, "@geo/shared-types": new URL( "../../packages/shared-types/src/index.ts", import.meta.url, ).pathname, "@geo/http-client": new URL( "../../packages/http-client/src/index.ts", import.meta.url, ).pathname, }, }, server: { host: "0.0.0.0", port: 5173, proxy: { "/api": { target: env.VITE_API_PROXY_TARGET || "http://localhost:8080", changeOrigin: true, }, }, }, }; });