This repository contains the source code to the official user interface of the Polygon Open-Source Project.
To run Polygon's UI locally, you will need to set several environment variables in a .env.local
file in your project's root:
POLYGON_CORE_URL
- The URL of your Polygon core instance.IRON_SESSION_SECRET
- A 512 bit random string for cookie encryption.
After setting the variables, you can run the following command to start the UI:
yarn dev
or, if you would like to run an optimized production build
yarn build
yarn start
If you want to deploy your instance of Polygon's UI to a cloud provider such as Netlify or Vercel, we have got you covered. You can deploy with these providers by clicking any of the buttons below!
Note: if you choose to host with Netlify, follow Netlify's environment variable declaration documentation to set required environment variables from the control panel.