forked from baron/baron-sso
fix: add allowedHosts to Vite config for staging domains
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user