Get a PolygonScan API key and put it in .env.local
:
POLYGON_API_KEY=
Run local server:
npm run dev
Push to main
branch to deploy.
To run the tests using Cypress:
- Install dev dependencies:
npm install
- Run local server:
npm run dev
- Run Cypress tests in a separate terminal:
npm run e2e
To run unit tests with jest
npm run test
Watch mode:
npm run test:watch
Supports using either the VS Code debugger or Chrome DevTools.
See official Next.js docs: https://nextjs.org/docs/advanced-features/debugging
You can set DEBUG_ENABLE
to console.debug request responses and override the production blocking for the dot switch described below.
You can use ?wallet=
to test using a specific wallet address
To enable individual dots (bypasses any external polygon api calls)
set NEXT_PUBLIC_DEBUG_ENABLE_DOTS=
To enable dots one at a time or multiple dots. Use a string of 1/0 switches to enable/disable
ex: NEXT_PUBLIC_DEBUG_ENABLE_DOTS=1111111
This would enable the first 7 game tasks. Not avail in production