File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ if ($PrimaryResult) {
110110 Write-Host " `n ⚠️ Selected region '$Location ' has sufficient quota but is not among the recommended regions (≥ $RECOMMENDED_TOKENS tokens)."
111111 Write-Host " 🚨 Your application may not work as expected due to limited quota."
112112 Write-Host " `n ℹ️ Recommended regions: $ ( $RecommendedRegions -join ' , ' ) "
113+ Write-Host " 👉 It's advisable to deploy in one of these regions for optimal app performance."
113114 $choice = Read-Host " ❓ Do you want to choose a recommended region instead? (y/n)"
114115 if ($choice -match " ^[Yy]$" ) {
115116 Show-Table
Original file line number Diff line number Diff line change @@ -218,8 +218,15 @@ ask_for_location() {
218218
219219# -------------------- Final Decision Logic --------------------
220220if [[ $primary_status -eq 0 ]]; then
221+
221222 if [[ " ${NOT_RECOMMENDED_REGIONS[*]} " == * " $LOCATION " * ]]; then
222- echo -e " \n⚠️ Region '$LOCATION ' is not recommended (available < $RECOMMENDED_TOKENS )."
223+ recommended_list=$( IFS=, ; echo " ${RECOMMENDED_REGIONS[*]} " )
224+ bold_regions=$( printf " \033[1m%s\033[0m" " $recommended_list " )
225+ echo -e " \n⚠️ \033[1mWarning:\033[0m Region '$LOCATION ' has available tokens less than the recommended threshold ($RECOMMENDED_TOKENS )."
226+ echo -e " 🚨 Your application may not work as expected due to limited quota."
227+ echo -e " \nℹ️ Recommended regions (≥ $RECOMMENDED_TOKENS tokens available): $bold_regions "
228+ echo -e " 👉 It's advisable to deploy in one of these regions for optimal app performance."
229+
223230 echo -n " ❓ Proceed anyway? (y/n): "
224231 read -r proceed < /dev/tty
225232 if [[ " $proceed " =~ ^[Yy]$ ]]; then
You can’t perform that action at this time.
0 commit comments