Skip to content

Yearn governance web apps: stYFI, veYFI migration, and related UIs.

License

Notifications You must be signed in to change notification settings

yearn/governance-apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

218 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open 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.

Environment Variables

  • 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 to true to 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/ui in 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:

  1. Local dev: NEXT_PUBLIC_RUNTIME_MODE=development
  2. Preview deploy: NEXT_PUBLIC_RUNTIME_MODE=preview
  3. Production deploy: NEXT_PUBLIC_RUNTIME_MODE=production

For the full mode matrix and deployment checklists, see:

  • docs/shared/runtime-modes.md

Cloudflare Worker Targets

  • 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 Link Routing

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:prod
  • npm run worker:deploy:preprod

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.

About

Yearn governance web apps: stYFI, veYFI migration, and related UIs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages