fix: adjust server configuration in vite.config.ts for improved host settings
This commit is contained in:
@@ -1,12 +1,17 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import tailwindcss from "@tailwindcss/vite";
|
import tailwindcss from "@tailwindcss/vite";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
server: {
|
server: {
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
|
allowedHosts: ["weather.the1s.de"],
|
||||||
port: 7002,
|
port: 7002,
|
||||||
watch: {
|
watch: { usePolling: true },
|
||||||
usePolling: true,
|
hmr: {
|
||||||
|
host: "weather.the1s.de",
|
||||||
|
port: 7002,
|
||||||
|
protocol: "wss",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user