You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add role-aware navigation and protected route guards
Resolve a client-side UserRole (guest/investor/admin) from the connected
wallet address via a VITE_ADMIN_WALLETS allowlist, gate the nav's Admin
link and a new /admin route behind it with a reusable ProtectedRoute
guard, and document the pattern for adding future gated routes.
Closes#981
Copy file name to clipboardExpand all lines: docs/ENV_VARIABLE_MATRIX.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,12 @@ Complete reference for all environment variables across the YieldVault RWA stack
154
154
|`VITE_FF_ADVANCED_CHARTS`|`false`| ⬜ optional |`false` until stable |
155
155
|`VITE_FF_DEBUG_MODE`|`false`| ⬜ optional | Must be `false`|
156
156
157
+
### Role-Based Navigation
158
+
159
+
| Variable | Default | Required | Production Recommendation |
160
+
|---|---|---|---|
161
+
|`VITE_ADMIN_WALLETS`|_(empty)_| ⬜ optional | Comma-separated wallet addresses granted the admin nav link and `/admin` route. Not a security boundary — ships in the client bundle (see `frontend/src/lib/roles.ts`). |
162
+
157
163
### Sentry (Error Monitoring)
158
164
159
165
| Variable | Default | Required | Production Recommendation |
0 commit comments