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_"],
|
envPrefix: ["VITE_", "USERFRONT_"],
|
||||||
server: {
|
server: {
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
|
allowedHosts: ["sadmin.hmac.kr", "localhost"],
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
target: process.env.API_PROXY_TARGET || "http://localhost:3000",
|
target: process.env.API_PROXY_TARGET || "http://localhost:3000",
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ export default defineConfig({
|
|||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
host: "0.0.0.0", // Ensure binding to all interfaces
|
host: "0.0.0.0", // Ensure binding to all interfaces
|
||||||
|
allowedHosts: ["sdev.hmac.kr", "localhost"],
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
target: process.env.API_PROXY_TARGET || "http://localhost:3000",
|
target: process.env.API_PROXY_TARGET || "http://localhost:3000",
|
||||||
|
|||||||
Reference in New Issue
Block a user