From e22fa64e692e39b894ba49c1bf1a0fc22fb9c832 Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Sat, 2 Aug 2025 02:24:13 +0200 Subject: [PATCH] fix: adjust server configuration in vite.config.ts for improved host settings --- frontend/vite.config.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 15d1c80..c2fb710 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,12 +1,17 @@ import { defineConfig } from "vite"; import tailwindcss from "@tailwindcss/vite"; + export default defineConfig({ plugins: [tailwindcss()], - server: { + server: { host: "0.0.0.0", + allowedHosts: ["weather.the1s.de"], port: 7002, - watch: { - usePolling: true, + watch: { usePolling: true }, + hmr: { + host: "weather.the1s.de", + port: 7002, + protocol: "wss", }, }, });