diff --git a/adminfront/scripts/runtime-mode.sh b/adminfront/scripts/runtime-mode.sh index 8191bf0d..aa41dce1 100644 --- a/adminfront/scripts/runtime-mode.sh +++ b/adminfront/scripts/runtime-mode.sh @@ -19,8 +19,8 @@ fi if [ "$mode" = "production" ]; then echo "Running in production mode with Vite preview..." - exec sh -c "npm run build && npm run preview -- --host 127.0.0.1" + exec sh -c "npm run build && npm run preview -- --host 0.0.0.0" fi echo "Running in development mode..." -exec npm run dev -- --host 127.0.0.1 +exec npm run dev -- --host 0.0.0.0 diff --git a/devfront/scripts/runtime-mode.sh b/devfront/scripts/runtime-mode.sh index 8191bf0d..aa41dce1 100644 --- a/devfront/scripts/runtime-mode.sh +++ b/devfront/scripts/runtime-mode.sh @@ -19,8 +19,8 @@ fi if [ "$mode" = "production" ]; then echo "Running in production mode with Vite preview..." - exec sh -c "npm run build && npm run preview -- --host 127.0.0.1" + exec sh -c "npm run build && npm run preview -- --host 0.0.0.0" fi echo "Running in development mode..." -exec npm run dev -- --host 127.0.0.1 +exec npm run dev -- --host 0.0.0.0