Initialize repo:
pnpm i
Start development version:
cp .env.example .env
pnpm dev
The entry component is PolygonZkEVM
and it's located at
/src/components/polygon/index.tsx
It loads the mattlock.near/widget/zk-evm-lp
BOS component. The source can be found here.
This is a Next.js app and a fork of NEAR Discovery gateway app.
For static exports just run next build
and upload the build files to your hosting provider. More info here.
For Vercel, Cloudflare or others that supports a Next app just connect the repo and follow the deploy steps from the dashboards.
More info on Next.js deployments here.
docker build -t bos-polygon-gateway .
docker run -p 3000:3000 bos-polygon-gateway