From 161c0163d3aa2f71ff127f8d69506e812e249c24 Mon Sep 17 00:00:00 2001 From: chan Date: Wed, 18 Mar 2026 16:48:59 +0900 Subject: [PATCH] fix: add allowedHosts to Vite config for staging domains --- adminfront/vite.config.ts | 1 + devfront/vite.config.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/adminfront/vite.config.ts b/adminfront/vite.config.ts index 30365be1..9a77e861 100644 --- a/adminfront/vite.config.ts +++ b/adminfront/vite.config.ts @@ -7,6 +7,7 @@ export default defineConfig({ envPrefix: ["VITE_", "USERFRONT_"], server: { host: "0.0.0.0", + allowedHosts: ["sadmin.hmac.kr", "localhost"], proxy: { "/api": { target: process.env.API_PROXY_TARGET || "http://localhost:3000", diff --git a/devfront/vite.config.ts b/devfront/vite.config.ts index 4b6f15a4..40d489d8 100644 --- a/devfront/vite.config.ts +++ b/devfront/vite.config.ts @@ -6,6 +6,7 @@ export default defineConfig({ plugins: [react()], server: { host: "0.0.0.0", // Ensure binding to all interfaces + allowedHosts: ["sdev.hmac.kr", "localhost"], proxy: { "/api": { target: process.env.API_PROXY_TARGET || "http://localhost:3000",