Status Hub
This is the source for https://hub.status.network – a Next.js project with static export.
Prerequisites
Getting Started
First, follow the root README to clone the repo, initialize submodules, and install dependencies.
Then, pull environment variables:
vercel env pull .env.local
[!NOTE]
NEXT_PUBLIC_STATUS_NETWORK_API_URL: Base URL for the Status Network API used by the hub for auth, current user (/auth/me), karma/sybil (proof-of-work), predeposit vaults APR, and captcha. You can run this API locally by cloning the sn-api repo https://github.com/status-im/sn-api. If you do so don't forget to change the value of this variable to the local API's URL.
NEXT_PUBLIC_STATUS_API_URL: Base URL for the Status API used by the hub to fetch token exchange rates (market data). You can run this API locally by runningpnpm devthe root or in the api project. If you do so don't forget to change the value of this variable tohttp://localhost:3030.
Start the development server:
pnpm dev
Building
Build the static export:
pnpm build
Preview the static build locally:
pnpm start
Deploying
Deployment is handled via Jenkinsfile.website