Improve explorer SSR, hydration, compaction, and smoke coverage.
Defer heavy getServerSideProps on home, operator, addresses, and wallet to cut TTFB; centralize locale-safe formatters with client-only relative times; add compact ops UX, bridge/operator relay pagination, and Playwright route/scroll smoke in deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -233,6 +233,27 @@ if [[ -f "${SMOKE_SCRIPT}" ]]; then
|
||||
echo "WARN: institutional smoke failed — see ${SMOKE_SCRIPT}" >&2
|
||||
}
|
||||
fi
|
||||
|
||||
SMOKE_ROUTES="${FRONTEND_ROOT}/scripts/smoke-routes.mjs"
|
||||
SMOKE_SCROLL="${FRONTEND_ROOT}/scripts/smoke-scroll-height.mjs"
|
||||
if [[ -f "${SMOKE_ROUTES}" ]] && [[ "${EXPLORER_SKIP_ROUTE_SMOKE:-}" != "1" ]]; then
|
||||
echo ""
|
||||
echo "== Playwright route smoke (optional) =="
|
||||
if (cd "${FRONTEND_ROOT}" && npm exec -- playwright install chromium >/dev/null 2>&1 && BASE_URL="${EXPLORER_BASE:-https://explorer.d-bis.org}" npm run smoke:routes); then
|
||||
echo "Route smoke: PASS"
|
||||
else
|
||||
echo "WARN: route smoke skipped or failed — set EXPLORER_SKIP_ROUTE_SMOKE=1 to silence; run npm install in frontend first" >&2
|
||||
fi
|
||||
fi
|
||||
if [[ -f "${SMOKE_SCROLL}" ]] && [[ "${EXPLORER_SKIP_SCROLL_SMOKE:-}" != "1" ]] && [[ "${EXPLORER_SKIP_ROUTE_SMOKE:-}" != "1" ]]; then
|
||||
echo ""
|
||||
echo "== Playwright scroll-height smoke (optional) =="
|
||||
if (cd "${FRONTEND_ROOT}" && BASE_URL="${EXPLORER_BASE:-https://explorer.d-bis.org}" npm run smoke:scroll); then
|
||||
echo "Scroll-height smoke: PASS"
|
||||
else
|
||||
echo "WARN: scroll-height smoke failed — set EXPLORER_SKIP_SCROLL_SMOKE=1 to silence" >&2
|
||||
fi
|
||||
fi
|
||||
echo ""
|
||||
echo "Nginx follow-up:"
|
||||
echo " Switch the explorer server block to proxy / and /_next/ to 127.0.0.1:${FRONTEND_PORT}"
|
||||
|
||||
Reference in New Issue
Block a user