refactor: simplify Vite configuration by removing unused plugins and ensuring proper HMR settings

This commit is contained in:
2025-08-15 11:23:01 +02:00
parent af30e87d96
commit 7ef52321d6

View File

@@ -1,16 +1,17 @@
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import tailwindcss from "@tailwindcss/vite"; import tailwindcss from "@tailwindcss/vite";
export default defineConfig({ export default defineConfig({
plugins: [react(), svgr(), tailwindcss()], plugins: [tailwindcss()],
server: { server: {
host: "0.0.0.0", host: "0.0.0.0",
allowedHosts: ["lose.the1s.de"],
port: 8501, port: 8501,
https: true, watch: { usePolling: true },
watch: { hmr: {
usePolling: true, host: "lose.the1s.de",
port: 8501,
protocol: "wss",
}, },
}, },
}); });