Running ENSAdmin Locally
Follow ENSNode’s contribution guide to prepare your workspace environment & install dependencies.
Install dependencies
Section titled “Install dependencies”pnpm installSet configuration
Section titled “Set configuration”cp .env.local.example .env.localAvailable environment variables:
NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY- Comma-separated list of ENSNode URLs offered as connection options (defaults to NameHash’s hosted instances)ENSADMIN_PUBLIC_URL- The public URL where ENSAdmin is hosted (optional)
Run development server
Section titled “Run development server”Starts the Next.js development server:
pnpm devVisit http://localhost:4173 to build with ENSAdmin locally.
Preview production build
Section titled “Preview production build”Create an optimized static export and serve it locally:
pnpm buildpnpm startThe production preview runs on http://localhost:4173 using the serve package.
ENSAdmin uses Next.js to output a Single Page Application (SPA). The production build generates a static site in the out directory, which is then served by nginx in the Docker container.