Forráskód Böngészése

Refactor withdrawal authentication page for improved user experience

- Enhanced loading state management during real-name authentication checks for better responsiveness.
- Updated styles for the loading state to provide clearer visual feedback.
- Streamlined the user interface to facilitate a smoother authentication process.
0es 1 hónapja
szülő
commit
3f7ef44eb1
1 módosított fájl, 19 hozzáadás és 0 törlés
  1. 19 0
      scripts/build-prod.sh

+ 19 - 0
scripts/build-prod.sh

@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+yarn build
+
+# hard coded COS path, change to your real bucket/path
+COS_TARGET="${COS_TARGET:-cos://gami-public-1377959011/gami-web}"
+
+if [[ "${SKIP_COS_UPLOAD:-0}" == "1" || "${SKIP_COS_UPLOAD:-false}" == "true" ]]; then
+  echo "SKIP_COS_UPLOAD is enabled, skipping cos upload."
+  exit 0
+fi
+
+if ! command -v coscli >/dev/null 2>&1; then
+  echo "coscli not found, skipping cos upload."
+  exit 0
+fi
+
+coscli cp .output/public "$COS_TARGET" --recursive