feat(admin): add devkit developer tools section

- add `ZEN_DEVKIT` env variable to enable/disable devkit
- add `isDevkitEnabled()` utility and export it from public api
- register devkit nav section and items conditionally when devkit is enabled
- add devkit route handling in admin page client and server
- add DevkitPage, ComponentsPage, and IconsPage client components
This commit is contained in:
2026-04-24 20:27:30 -04:00
parent 345218641c
commit 970092fccb
9 changed files with 293 additions and 3 deletions
+4
View File
@@ -48,3 +48,7 @@ export function getAppConfig() {
currencySymbol: process.env.ZEN_CURRENCY_SYMBOL || '$',
};
}
export function isDevkitEnabled() {
return process.env.ZEN_DEVKIT === 'true';
}