fix: allow duckdns hosts for vite dev server (staging)

This commit is contained in:
Pi Agent
2026-09-02 16:30:38 +00:00
parent 3302155ecd
commit cbd9de926f
+2
View File
@@ -9,6 +9,8 @@ const apiTarget = `http://localhost:${process.env.BACKEND_PORT ?? 8080}`;
export default defineConfig({ export default defineConfig({
plugins: [preact(), tailwindcss()], plugins: [preact(), tailwindcss()],
server: { server: {
// стейджинг смотрит доменом на vite — пускаем свой duckdns (точка = любые поддомены)
allowedHosts: [".alexey-homelab.duckdns.org"],
proxy: { proxy: {
// Connect RPC calls in dev go straight to the Go server. // Connect RPC calls in dev go straight to the Go server.
"/homelab.v1.HomelabService": apiTarget, "/homelab.v1.HomelabService": apiTarget,