From cbd9de926f11e61b24b2c274b2f0cac9be76c22d Mon Sep 17 00:00:00 2001 From: Pi Agent Date: Wed, 2 Sep 2026 16:30:38 +0000 Subject: [PATCH] fix: allow duckdns hosts for vite dev server (staging) --- web/vite.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/vite.config.ts b/web/vite.config.ts index 02efba9..3d1c030 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -9,6 +9,8 @@ const apiTarget = `http://localhost:${process.env.BACKEND_PORT ?? 8080}`; export default defineConfig({ plugins: [preact(), tailwindcss()], server: { + // стейджинг смотрит доменом на vite — пускаем свой duckdns (точка = любые поддомены) + allowedHosts: [".alexey-homelab.duckdns.org"], proxy: { // Connect RPC calls in dev go straight to the Go server. "/homelab.v1.HomelabService": apiTarget,