1
0
forked from baron/baron-sso

fix: add allowedHosts to Vite config for staging domains

This commit is contained in:
2026-03-18 16:48:59 +09:00
parent f59206e589
commit 161c0163d3
2 changed files with 2 additions and 0 deletions

View File

@@ -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",

View File

@@ -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",