Block explorer for Magi, a Hive L2 smart contract platform.
- pnpm
nodejs(Latest LTS)
git clone https://github.com/techcoderx/vsc-explorer
cd vsc-explorer
pnpm i
pnpm start
pnpm run build
The resulting files can be found in dist folder.
pnpm run preview
docker build --build-arg VITE_NETWORK=mainnet -t magi-blocks .docker run -d --rm -p 8080:8080 --name=magi-blocks magi-blocksVITE_NETWORK: Network name (mainnet or testnet)
Because the app is a SPA, link-preview crawlers (Discord, Twitter, Slack, etc.) don't execute
JavaScript and therefore can't read per-page Open Graph meta tags set by react-helmet-async.
The nginx container detects preview-bot User-Agents and proxies those requests to the backend's
/og scope (magi-bb:8080/og/...), which renders per-path meta-tag HTML. All other traffic
continues to receive the SPA. Enable and configure it in the backend's [og] config section.