forked from baron/baron-sso
fix: use vite preview in staging to support api proxy in frontends
This commit is contained in:
@@ -18,8 +18,8 @@ if [ "${1:-}" = "--print-mode" ]; then
|
||||
fi
|
||||
|
||||
if [ "$mode" = "production" ]; then
|
||||
echo "Running in production mode..."
|
||||
exec sh -c "npm run build && serve -s dist -l 5173"
|
||||
echo "Running in production mode with Vite preview..."
|
||||
exec sh -c "npm run build && npm run preview -- --host 0.0.0.0"
|
||||
fi
|
||||
|
||||
echo "Running in development mode..."
|
||||
|
||||
Reference in New Issue
Block a user