chore: update submodule references and improve documentation

This commit is contained in:
defiQUG
2026-04-10 12:51:46 -07:00
parent bdb70bef22
commit 2752c5fa24
9 changed files with 30 additions and 314 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Build the Snap companion site for https://explorer.d-bis.org/snap/
# Uses GATSBY_SNAP_API_BASE_URL=https://explorer.d-bis.org so Market data, Bridge, Swap cards work.
# For that to work, explorer.d-bis.org must serve the token-aggregation API at /api/v1/... (deploy
# Build the Snap companion site for https://blockscout.defi-oracle.io/snap/
# Uses GATSBY_SNAP_API_BASE_URL=https://blockscout.defi-oracle.io so Market data, Bridge, Swap cards work.
# For that to work, blockscout.defi-oracle.io must serve the token-aggregation API at /api/v1/... (deploy
# smom-dbis-138/services/token-aggregation and proxy it, or set GATSBY_SNAP_API_BASE_URL to the API host).
# Output: packages/site/public/ (upload to /var/www/html/snap/ on VMID 5000).
set -euo pipefail
@@ -9,9 +9,9 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$ROOT"
export GATSBY_PATH_PREFIX=/snap
export GATSBY_SNAP_API_BASE_URL="${GATSBY_SNAP_API_BASE_URL:-https://explorer.d-bis.org}"
export GATSBY_SNAP_API_BASE_URL="${GATSBY_SNAP_API_BASE_URL:-https://blockscout.defi-oracle.io}"
# So "Send on Chain 138" link is absolute HTTPS (avoids redirect to http and mixed-content).
export GATSBY_SNAP_SITE_URL="${GATSBY_SNAP_SITE_URL:-https://explorer.d-bis.org}"
export GATSBY_SNAP_SITE_URL="${GATSBY_SNAP_SITE_URL:-https://blockscout.defi-oracle.io}"
# Production: use npm snap so MetaMask does not try to fetch localhost:8080 (GATSBY_* is inlined into client bundle).
export GATSBY_SNAP_ORIGIN="${GATSBY_SNAP_ORIGIN:-npm:chain138-snap}"
# Required for Gatsby to apply pathPrefix to script/asset URLs (see path prefix docs).