This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
NEXT_PUBLIC_RUNTIME_MODE: Runtime mode selector (development,preview,production).NEXT_PUBLIC_WC_PROJECT_ID: WalletConnect project ID.NEXT_PUBLIC_RPC_URLS: Comma-separated RPC URLs used to seed wagmi transports (https://required on HTTPS sites). Required in production; optional in non-production.NEXT_PUBLIC_USE_MOCKS: Set totrueto use mock clients instead of on-chain reads/writes.NEXT_PUBLIC_E2E: Enables deterministic E2E wallet behavior and mock identity wiring.NEXT_PUBLIC_GLOBAL_DATA_URL: URL for global stats JSON payload.NEXT_PUBLIC_MOTD_URL: URL for MOTD JSON payload used in stats bars.NEXT_PUBLIC_ENABLE_YETH: Enables yETH routes/host in production runtime.NEXT_PUBLIC_ENABLE_DEBUG_UI: Enables/debug/uiin production runtime.
Production invariant checks:
npm run validate:deps: Enforces deterministic dependency policy.npm run validate:prod-env: Enforces required production env guards and required variables.
Quick mode checklist:
- Local dev:
NEXT_PUBLIC_RUNTIME_MODE=development - Preview deploy:
NEXT_PUBLIC_RUNTIME_MODE=preview - Production deploy:
NEXT_PUBLIC_RUNTIME_MODE=production
For the full mode matrix and deployment checklists, see:
docs/shared/runtime-modes.md
- Production Worker config:
wrangler.jsonc(app.dao-ops.com) - Preprod Worker config:
wrangler.preprod.jsonc(styfi-beta.dao-ops.com,veyfi-beta.dao-ops.com,yeth-beta.dao-ops.com)
Cross-app links (/styfi, /veyfi, /yeth) are resolved by lib/governance-links.ts
using the current request host surface:
- Local/shared path hosts (
localhost,127.0.0.1,app.dao-ops.com) -> path-scoped links (/styfi) - Preprod subdomain hosts (
*-beta.dao-ops.com) -> canonical beta app domains (https://styfi-beta.dao-ops.com) - Production subdomain hosts (
*.yearn.fi) -> canonical production app domains (https://styfi.yearn.fi)
Host/app mappings are centralized in lib/runtime/governance-hosts.ts.
Deploy helpers:
npm run worker:deploy:prodnpm run worker:deploy:preprod
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.