import { defineConfig } from "vite"; import react from "@vitejs/plugin-react-swc"; import path from "path"; import { componentTagger } from "lovable-tagger"; import { rssPlugin } from "./scripts/rss"; // https://vitejs.dev/config/ export default defineConfig(({ mode }) => ({ server: { host: "::", port: 8080, hmr: { overlay: false, }, }, plugins: [ react(), mode === "development" && componentTagger(), rssPlugin({ siteUrl: "https://damaj.tech", title: "Damaj — Blog", description: "Writing on engineering, systems, and craft.", }), ].filter(Boolean), resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, }));