Polish explorer frontend validation and utility pages

This commit is contained in:
defiQUG
2026-03-28 13:26:42 -07:00
parent 59eee21a3f
commit 1e3a3f00ef
7 changed files with 201 additions and 5 deletions

View File

@@ -28,6 +28,19 @@ Why:
- Setting `NEXT_PUBLIC_API_URL=https://explorer.d-bis.org/api` will incorrectly produce requests like `/api/api/v2/*`.
- Token aggregation remains under `/token-aggregation/api/v1/*` and is linked separately by the frontend.
### Local frontend validation
From `frontend/`, the current local validation flow is:
```bash
npm run build:check
BASE_URL=http://127.0.0.1:3000 npm run smoke:routes
```
- `build:check` runs lint, type-check, and a production build.
- `smoke:routes` performs a lightweight route and content sweep against a running frontend instance.
- `npm run dev` now binds to `127.0.0.1` by default, but still honors `HOST` and `PORT` overrides.
---
## CSP blocks eval / “script-src blocked”